txt = input() idx = 0 mc_ch = "" for ch in txt: count = txt.count(ch) if(count > idx): idx = count mc_ch = ch print(mc_ch)