#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char str[100];
int n;
scanf("%s",&str);
int count[26]={0};
char a[26]={'a','b','c','d','e','f','g','h','i','j',
'k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}
for(int i=0;str[i]!='\0';i++){ //字符串中的遍历操作
for(int j=0;j<26;j++){
if(str[i]==a[j]){
count[j]++;
}
}
}
max=count[0];
for(j=0;j<26;j++){ //比较大小的方法
if(count[j]>max){
max=count[j];
n=j;
}
}
printf("%d",count[n]);
// 请在此输入您的代码
return 0;
}
//明白for循环中每一步的用法