using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int boy = int.Parse(str[0])+1; int girl = int.Parse(str[1]); int amari = girl - boy; if(amari==0) { Console.WriteLine("YES"); Console.WriteLine(amari); } else if(amari>0) { Console.WriteLine("NO"); Console.WriteLine(amari); } else { Console.WriteLine("NO"); Console.WriteLine(amari*-1); } } } }