numbers = input().split()
flag = 0
for i in range(len(numbers)):
#print(numbers[i])
if numbers[i].isdigit() == True:
flag += 1
# print(flag)
# print(len(numbers))
if flag == len(numbers):
for i in range(len(numbers)-1):
# print(numbers[i], numbers[i+1])
if numbers[i] < numbers[i+1]:
mx = numbers[i+1]
else:
mx = numbers[i]
print(mx)