#include using namespace std; int main(){ int n, k, win = 0; cin >> n >> k; for(int i = 0; i < n; i++){ int x; cin >> x; win ^= x % (k + 1); } cout << (win? "YES" : "NO") << endl; return 0; }