n,h=map(int,input().split()) l=input().replace(' ','*') print("YES" if eval(l)%h==0 else "NO")