fun main(args: Array<String>) {
    val n = getInt()
    val m = IntArray(10001) { 0 }

    fun cal(a: Int, b: Int, c: Int) : Int {
        return a * a + b * b + c * c + a * b + b * c + c * a
    }

    (1..100).forEach { a ->
        (1..100).forEach { b ->
            (1..100).forEach { c ->
                val k = cal(a, b, c)
                if (k <= 10000) {
                    m[k]++
                }
            }
        }
    }

    (1..n).forEach {
        println(m[it])
    }
}

fun getInt() = readLine()!!.toInt()