#include int main() { int n; std::cin >> n; //[0]=odd, [1]=even; int count = 0; for (int i = 0; i < n; i++) { long long num; std::cin >> num; num = abs(num); if (num % 2 == 0)count++; else count--; } std::cout << abs(count) << std::endl; return 0; }