s = gets.split.map(&:to_i) if s[1] % s[0] == 0 puts s[1] / s[0] else puts "NO" end