local a = io.read("*n") local b = io.read("*n") local ans = (function () if math.floor(b / a) == (b / a) then return b / a else return "NO" end end)() print(ans)