(define (main args) (let* ([a (read)] [b (read)]) (print (if (zero? (remainder a b)) "YES" "NO"))) 0)