a,b,c = float(input()), float(input()), float(input())
if (a>b) and (a>c):
print(a)
elif b > c:
print(b)
else:
print(c)
a,b,c = float(input()), float(input()), float(input())
if (a>b) and (a>c):
print(a)
elif b > c:
print(b)
else:
print(c)