a,b = map(int,input().split()) a *= 10**18 if a % b == 0: print("No") else: print("Yes")