#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n; ll e = 0, o = 0; re(i, n){ ll a;std::cin >> a; (a%2?o:e)++; } std::cout << max(o, e) - min(o, e) << '\n'; }