#include using namespace std; int main(){ int n; cin >> n; int a=0,b=0,k; for(int i=0;i> k; k%2==0?++a:++b; } cout << abs(a-b) << endl; return 0; }