import sequtils, strutils let n: seq[int] = stdin.readline.split.map(parseInt) ans: string = if n[0] mod n[1] == 0: "YES" else: "NO" echo ans