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