#include #include using namespace std; int main() { string str1,str2; int count = 1, max = 1; cin >> str1; while(cin >> str2) { if(str2 == str1) { count++; } else { count = 0; } if(count > max) { max = count; } } cout << max << endl; return 0; }