#include #include #include using namespace std; int max_votes(const map &votes) { int m_votes = 0; for (auto [key, value] : votes) { m_votes = max(m_votes, value); } return m_votes; } int main(void) { int n; cin >> n; map votes; while (n--) { string name; cin >> name; votes[name]++; } cout << max_votes(votes) << endl; return 0; }