from collections import Counter print(Counter(input()).most_common()[0][0])