a, b = gets.split(" ").map(&:to_i) if (b - (a + 1)) >= 0 puts "YES" else puts "NO" end puts ((a + 1) - b).abs