字符统计
import re
pat = '[a-zA-Z]+'
l = re.findall(pat,input())
l = ''.join(l).lower()
l = list(l)
l.sort()
lst = []
count = []
for i in l:
if i in lst:
count[lst.index(i)] += 1
else:
lst.append(i)
count.append(1)
print(lst[count.index(max(count))]+' '+str(max(count)))