http://ac.jobdu.com/problem.php?pid=1169
#include<stdio.h>
int main(){
int i,a,b1,b2,n;
while(scanf("%d",&n)!=EOF){
b1=0;b2=0;
for(i=0;i<n;i++){
scanf("%d",&a);
if(a%2==0) b1++;
else b2++;
}
if(b1>b2) printf("NO\n");
else printf("YES\n");
}
return 0;
}