#include<cstdio>
#include<cstring>



int main(){

    int n;

    while(scanf("%d",&n) != EOF){

        int count = 0;
        int a;

        for(int i=0;i<n;i++){
            scanf("%d",&a);
            if(a%2 == 0){
                count++;
            }
        }

        if(count > (n-count))    printf("NO\n");
        else printf("YES\n");


    }



    return 0;
}