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