import re
ss = input()
ll1 = re.split('[a-z]| ',ss)
ll2 = list(map(len,ll1))
print(ll1[ll2.index(max(ll2))])