using System; using System.Linq; class Program { public void Solve() { int[] AB = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); Console.WriteLine(AB[0] < AB[1] ? "YES" : "NO"); Console.WriteLine(Math.Abs(AB[0] + 1 - AB[1])); } static void Main() { var solver = new Program(); solver.Solve(); } }