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