(define a (read))
(define b (read))
(print (if(integer? (/ b a)) (print (/ b a))(print "NO")))