0分求调
#include<bits/stdc++.h> using namespace std; long long a[10001],b,j=0,o=0; int main() { cin>>b; for(int i=0;i<b;i++) { cin>>a[i]; } for (int i = 1; i <= b; i++) { if (a[i] % 2 == 1) j++; else o++; } cout<<o<<" "<<j<<endl; return 0; }