#include
char function_name(char *s){
char arr[256]{0};
for (char * p = s; *p; ++p)
arr[*p+128]++;
char * max = arr;
for (char * p = arr; p < (arr + 256); ++p){
if (*p > *max) max = p;
}
return (max - arr) - 128;
}
int main()
{
char buff[255];
std::cin.getline(buff,255);
std::cout << buff << " : " << function_name(buff);</span>
return 0;
}