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