#include #include using namespace std; int main() { vector arr; int num; while (cin >> num) { arr.push_back(num); } int maxLength = 1, currentLength = 1; for (size_t i = 1; i < arr.size(); i++) { if (arr[i] == arr[i - 1]) { currentLength++; } else { maxLength = max(maxLength, currentLength); currentLength = 1; } } maxLength = max(maxLength, currentLength); cout << maxLength << endl; return 0; }