x = int(input())
y = int(Input())
z = int(input())
if x >= y and x>= z:
print(x)
elif y >= x and y >= z:
print(y)
elif z >= y and z >= x:
print(z)
x = int(input())
y = int(Input())
z = int(input())
if x >= y and x>= z:
print(x)
elif y >= x and y >= z:
print(y)
elif z >= y and z >= x:
print(z)