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