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 f == 0: print("NO")