a, b = gets.chomp.split.map &:to_i if b % a == 0 p b / a else puts "NO" end