n,h=map(int,input().split()) f=0 a=list(map(int,input().split())) for x in a: if x%h==0: f=1 break print("YES" if f else "NO")