#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int hs[26];
int main(){
string s;
cin>>s;
int len=s.length();
for(int i=0;i<len;++i){
hs[s[i]-'a']++;
}
int max=0;
for(int i=0;i<26;++i){
if(hs[i]>max){
max=hs[i];
}
}
for(int i=0;i<26;++i){
if(hs[i]==max){
cout<<char(i+'a')<<endl<<max; //第一个就是字典序最小的
break;
}
}
return 0;
}
1 回复
0 转发
0 喜欢
3 阅读



