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