#include <stdio.h>

void main()
{
    int i, j, n, ar[30], c[10];

    printf("Enter the no. of elements");
    scanf("%d", &n);

    printf("Enter the elements");
    for(i = 0; i <= n; i++)
        scanf("%d", &ar[i]);
    for(k=0; k<=10; k++)
	    for(j = 0; j <= n; j++)
	    {
		if(ar[j] == ar[j + 1])
		{
		    count++;
		}
		else
		    break;

		c[k] = count;
	    }

    printf(max [c[k]]);
}