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