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