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