import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Main implements Runnable { public static void main(String[] args) { new Main().run(); } public void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); long[] A = new long[N]; for (int i = 0; i < N; ++i) { A[i] = sc.nextLong(); } Arrays.sort(A); long g = 0; for (int i = 0; i < N; ++i) { g ^= A[i] % (K + 1); } if (g != 0) { System.out.println("YES"); } else { System.out.println("NO"); } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }