main = do [a, b] <- map read . words <$> getLine if b `mod` a == 0 then print (b `div` a) else putStrLn "NO"