a=gets.to_i b=gets.to_i ans = b/a if (ans == 0) puts ans else puts "NO" end