#include using namespace std; typedef long long ll; int main() { ll n,k; cin>>n>>k; int a[n]; for (int i=0;i>a[i]; a[i]--; } for (int i=0;i=0&&k%2==0) puts("YES"); else puts("NO"); return 0; }