import java.util.Scanner; public class Main { static Scanner scan = new Scanner(System.in); public static void main(String[] args) { final int n = scan.nextInt(); final int[] arr = new int[n]; long ans = 0; for(int i=0; i= n) { j = n; break; } if(arr[j] == 0) break; if(arr[j+1] == 1) { j++; break; } j+=2; } return j-i; } }