N,H=map(int,input().split())
A=map(int,input().split())

for a in A:
    if a%H==0:
        print("YES")
        exit(0)
print("NO")