x = input().split(' ')
x = list(map(int, x))
if x[0] == x[1] == x[2]:
print('Same age')
elif x[0] == x[1] or x[0] == x[2] or x[1] == x[2]:
print(min(x))
else:
print(max(x))