using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); var odd = 0; var even = 0; for (int i = 0; i < n; i++) if (n % 2 == 0) even++; else odd++; Console.WriteLine(Math.Abs(odd - even)); } }