using System;
public class Program
{
public static void Main()
int count = 0;
int[] ar = {1,1,1,0,1,1,0,0,1,1,1,1,1,1,1};
int maxOccurences=0;
for(int i =0;i< ar.Length ;i++){
int value = ar[i];
count = 0;
if(value==1){
for(int j =i ; j<ar.Length ;j++){
if(ar[j] == 1 )
{count ++;}
else{
break;
}
if(count > maxOccurences)
maxOccurences = count;
Console.WriteLine(maxOccurences);