#include #include #define N 10000 using namespace std; int main(void){ int n, index; int a[N]={}; cin >> n; string s; for(int i=0;i> s; a[s.size()-2]++; } index = 0; for(int i=1;i