N,H=map(int,input().split()) A=list(map(int,input().split())) F=0 for a in A: F|=(a%H==0) if F: print("YES") else: print("NO")