#include using namespace std; int main() { // Variables int a[100], length = 0, number = 0, currCount = 1, tempCount = 1; // Input Array while(cin >> a[length]) length++; // Find Solution for (int i = 0; i < length - 1; i++) { if (a[i] == a[i + 1]) tempCount++; else tempCount = 1; if (tempCount > currCount) { currCount = tempCount; number = a[i]; } } // Print cout << currCount << endl; return 0; }