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