#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,ct;
scanf("%d",&ct);
while(~scanf("%d",&n))
{
if(n&1) ct-=2;
}
if(ct<=0) printf("YES\n");
else printf("NO\n");
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,ct;
scanf("%d",&ct);
while(~scanf("%d",&n))
{
if(n&1) ct-=2;
}
if(ct<=0) printf("YES\n");
else printf("NO\n");
return 0;
}