#include <bits/stdc++.h>
using namespace std;
#define int long long
// #define LL long long
#define endl '\n'
map<char, int> mp;
void solve()
{
char c;
while (cin >> c)
{
if (cin.eof()) break;
mp[c]++;
}
char res1;
int res2 = 0;
for (char i = 'a'; i <= 'z'; i++)
{
if (mp[i] > res2)
{
res1 = i;
res2 = mp[i];
}
}
cout << res1 << endl << res2;
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
solve();
return 0;
}
0 回复
0 转发
0 喜欢
1 阅读



