open System let A , B = Console.ReadLine().Split(' ') |> (fun x -> int x.[0] , int x.[1] ) match A < B with | true -> Console.WriteLine "YES" | false-> Console.WriteLine "NO" Console.WriteLine ((A+1) - B)