a = 20
b = 20
c = 30
d = 46
arr = [a, b, c, d]
max = a
for i in arr:
if(i > max):
max = i
print(max)
a, b, c, d = int(input()), int(input()), int(input()), int(input())
max_number = a
list_ = [a, b, c, d]
for i in list_:
if i > max_number:
max_number = i
print(max_number)
a = 20
b = 20
c = 30
d = 46
arr = [a, b, c, d]
max = a
for i in arr:
if(i > max):
max = i
print(max)
a, b, c, d = int(input()), int(input()), int(input()), int(input())
max_number = a
list_ = [a, b, c, d]
for i in list_:
if i > max_number:
max_number = i
print(max_number)