fun main(args: Array<String>) {
    val a = readLine()!!.split(" ").map { it.toInt() }
    val n = a[0]
    val x = a[1]
    val y = a[2]

    for (k in 1..n - 1) {//ｋは最短距離
        var ans = 0
        for (i in 1..n - k) {//iは一つ決める点
            var simple = 1//最初にcount++してたヤーツ
            var big = 0//目的地bigのほうのヤーツ
            var small = 0

            // yからうごける回数
            val nokori = k - Math.abs(x - i) - 1

            if (nokori > 0) {

                val j_simple = i + k
                val j_big = y + nokori
                val j_small = y - nokori

                if (j_big <= n) {
                    if (j_simple <= y) {
                        big = 1
                        if (j_simple < j_small) {
                            small = 1
                        } else if (j_simple > j_small) {
                            simple = 0
                        }
                    } else if (j_simple < j_big) {
                            simple = 0
                            big = 1
                    }
                } else {
                    if (j_simple <= y){
                        if (j_simple < j_small) {
                            small = 1
                        } else if (j_simple > j_small) {
                            simple = 0
                        }
                    } else {
                        simple = 0
                    }
                }
            } else if (nokori == 0){
                if (i < (x + y) / 2){
                    big = 1
                }
            }
            ans += simple + big + small

        }
        println(ans)
    }
}