#include <bits/stdc++.h>   using namespace std;   int main() {     int n, h, m;     int cash[2360] = {0};     scanf( %d , &n);     for (int i = 0; i < n; i++) {       scanf( %d %d , &h, &m);       h *= 100;       h += m;       cash[h]++;     }     sort(cash, cash + 2360, greater<int>());     printf( %d n , cash[0]);     return 0;   }   