n, x = map(int, input().split()) if n % x == 0 and n > x: print("Yes") else: print("No")