inf=10**30 a,b=map(int,input().split()) if (a*inf//b)*b==a*inf: print("No") else: print("Yes")