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]); boy++; int girl = int.Parse(people[1]); int amari = 0; if(boy == girl) { Console.WriteLine("YES"); } else if(boy > girl) { Console.WriteLine("NO"); amari = boy - girl; } else if(boy < girl) { amari = girl - boy; } Console.WriteLine(amari); } } }