N,H = map(int,input().split()) A = list(map(int,input().split())) f = 9 for i in range(N): #phase - 1 if A[i] == 0: print("YES") f += 1 break #phase - 2 elif A[i] % H == 0: print("YES") f += 1 break if f == 0: print("NO")