n = gets.chomp.split(" ") a = n[1].to_f / n[0].to_f if a.to_f % 1 == 0 puts "#{a}\n" elsif a.to_f % 1 != 0 puts "NO\n" end