import java.util.Scanner; public class Main { public static void main(String[] a) { Scanner s=new Scanner(System.in); s.next(); int c=0;while(s.hasNext())c+=s.nextInt()%2==0?1:-1; System.out.println(c*(c>0?1:-1)); } }