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