#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

int main()
{
    int a[], n, i, j;

    printf("Enter the array size: ");
    scanf("%d", &n);

    for (i = 0; i < n; i++)
    {
        printf("Enter the required array elements: ");
        scanf("%d", &a[]);
    }

    j = 0;
    if (a[i] == 1)
    {
	j =+ 1;
    }

    printf("Enter the number of consecutive 1's");
    scanf("%d",&j)

    return 0;
}