#include using namespace std; int main() { int n; cin >>n; int arr[n]; for(int i = 0; i > arr[i]; int maxLen = 1, currLen = 1,num = arr[0]; for(int i = 1; i < n; i++){ if(arr[i] == arr[i - 1]){ currLen++; if(currLen > maxLen){ maxLen = currLen; num = arr[i]; } }else { currLen = 1; } } cout << maxLen; return 0; }