a, b = [int(k) for k in input().split()] if a%b == 0: print("YES") else: print("NO")