#include using namespace std; int main(){ int n, input, result=0; cin >> n; for(int i=0; i> input; (input%2==0) ? ++result : --result; } result = (result<0) ? -result : result; cout << result << "\n"; return 0; }