#include #include #include #include using namespace std; int main() { int n, i; cin >> n; map mp; for (i=0; i> s; int eyes=0; for (auto c:s) { if (c=='^') eyes++; } mp[eyes]+=1; } vector> v(mp.size(), vector(2)); i=0; for (auto itr=mp.begin(); itr!=mp.end(); itr++) { v[i][0]=itr->second, v[i++][1]=itr->first; } sort(v.begin(), v.end(), greater>()); cout << v[0][1] << endl; }