import java.util.Scanner; public class N40 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int d=sc.nextInt(); int[] a=new int[d+1]; int dd=-1; int[] b=new int[3]; for(int i=0;i<=d;i++){ a[i]+=sc.nextInt(); if(i