open System

let R() = Console.ReadLine().Split() |> Array.map int

let f (n: int) (x: int) (y: int): int list =
    let costs = 
        [ for i in 1..n do 
            for j in i+1..n do 
                let r1 = abs (j - i)
                let r2 = abs (x - i) + 1 + abs (j - y) 
                let r3 = abs (y - i) + 1 + abs (j - x)
                min (min r1 r2) r3 ]
        |> List.groupBy id  
        |> List.map (fun (k, xs) -> k, List.length xs)
        |> Map.ofList
    [ for i in 1..n-1 do 
        Map.tryFind i costs 
        |> function
        | Some v -> v 
        | _ -> 0 ]

let N, X, Y = let t = R() in t.[0], t.[1], t.[2]

f N X Y 
|> List.iter (printfn "%i")