import java.util.Scanner; class Test { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int n = in.nextInt(); long[] w = new long[n]; long max = 0; boolean bool = true; for(int i=0; i 0 && w[i] % 2 != w[i-1] % 2) { bool = false; } } if(bool) { long ans = 0; for(int i=0; i