#include <bits/stdc++.h>   using namespace std;   int main() {     int i, n;     string st;     vector<string> v;     map<string, int> mp;     cin >> n;     for (i = 0; i < n; i++) {       cin >> st;       if (mp[st] == 0) {         v.push_back(st);       }       mp[st]++;     }     if (v.size() == 1)       cout << v[0] <<   n ;     else {       if (mp[v[0]] > mp[v[1]])         cout << v[0];       else         cout << v[1] <<   n ;     }     return 0;   }   