var i : Integer;begin
l = []
for i in range(0, 4):
n = int(input())
l.append(n)
print(max(l[0], l[1], l[2], l[3], l[4]))