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