using System; using System.Linq; class Program { static void Main() { var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); var a = arr[0] + 1; var b = arr[1]; Console.WriteLine(a <= b ? "YES" : "NO"); Console.WriteLine(Math.Abs(a - b)); } }