main=do[a,b]<-map read.words<$>getLine;putStr$if b`mod`a==0 then show$b`div`a else"NO"