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