fun main(args: Array<String>) {
    val n = readInt()

    val ans = MutableList(10001) { 0 }
    for (x in 1..100) {
        for (y in 1..100) {
            for (z in 1..100) {
                val v = x * x + y * y + z * z + x * y + y * z + z * x
                if (v <= 10000) {
                    ans[v]++
                }
            }
        }
    }
    for (i in 0 until n) {
        println(ans[i + 1])
    }
}

// Tools
fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()