fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val ans = IntArray(n){0}

    for (x in 1..n) {
        if (x*x + 2*x > n) break
        y@for (y in 1..n) {
            if (x*x + y*y + x*y + x + y > n) break@y
            z@for (z in 1..n) {
                val tmp = x*x + y*y + z*z + x*y + y*z + z*x
                if (tmp <= n) {
                    ans[tmp-1]++
                } else {
                    break@z
                }
            }
        }
    }

    println(ans.joinToString(separator = System.lineSeparator()))
}