import re s=input() l=re.split(r'([^w]+w+)',s)[1:] a=[x.count('w') for x in l] print(l[a.index(max(a))].replace('w',''))