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