#include #include #include using namespace std; int main() { int n,a[100000],odd=0,even=0; cin >> n; for(int i=0; i> a[i]; if(a[i]%2==0) { even++; } else { odd++; } } cout << abs(even-odd) << endl; }