#include #define rep(a,n) for (ll a = 0; a < (n); ++a) using namespace std; using ll = long long; typedef pair P; typedef pair PP; typedef vector > Graph; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const ll INF = 1e18; //入力 ll n,k; int main(){ cin >> n >> k; vectora(n); rep(i,n)cin>>a[i]; ll ans = 0; rep(i,n){ ans ^= a[i]%(k+1); } if(ans==0){ cout << "NO" << endl; } else{ cout << "YES" << endl; } return 0; }