#for python
a=int(input()) b=int(input()) c=int(input()) d=int(input()) e = [a, b, c, d] n=max(e) print(n)