import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) n,h=map(int,input().split()) a=[int(i) for i in input().split()] for i in a: if i%h==0: print("YES") exit() print("NO")