a = int(input())
b = int(input())
c = int(input())
max = a
if a < b:
max = b
if b < c:
max = c
elif a < c:
print(max)
a = int(input())
b = int(input())
c = int(input())
max = a
if a < b:
max = b
if b < c:
max = c
elif a < c:
max = c
print(max)