#include #include #include using std::cin; using std::cout; using std::endl; int n; std::string s; std::map m; std::pair ans; int main() { cin >> n; while (n--) { cin >> s; m[s]++; } for (auto i : m) { if (i.second > ans.second) { ans = i; } } cout << ans.first << endl; return 0; }