import sequtils,strutils var A, B : int (A, B) = stdin.readline.split.map(parseInt) if A mod B == 0: echo "YES" else: echo "NO"