import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int[] a = new int[n]; int sum = 0; for(int i=0;ii){ count += a[i]; } else if(i>n-l-1){ count += a[i]; } else{ if(max-Math.abs(n/2-i)