using System; using System.Collections.Generic; using System.Linq; public class Program { static void Main() { //long N = long.Parse(Console.ReadLine()); int N, K; { int[] vs = Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray(); N = vs[0]; K = vs[1]; } int[] A = Console.ReadLine().Split().Select(_ => int.Parse(_)).ToArray(); int xor = 0; for (int i = 0; i < N; i++) xor ^= A[i] % (K + 1); if (xor != 0) Console.WriteLine("YES"); else Console.WriteLine("NO"); } }