import math a, b = map(int, input().split()) c = (a / b) * 10**18 print("No" if c.is_integer() else "Yes")