#include #include int main() { int c[1001]; memset(c,0,sizeof(int)*1001); int n; int max = 0; int index = 0; scanf("%d",&n); char s[1024]; for (int i = 0;i < n;i++) { scanf("%s", &s); c[strlen(s)-2]++; } for (int i = 0;i < 1000;i++) { if (c[i] >= max) { index = i; max = c[i]; } } printf("%d\n",index); }