private fun readLn() = readLine()!!
private fun readInt() = readLn().toInt()
private fun readLong() = readLn().toLong()
private fun readStrings() = readLn().split(" ")
private fun readInts() = readStrings().map(String::toInt)
private fun readLongs() = readStrings().map(String::toLong)

fun main() {
    val m = 10000
    val cnt = IntArray(m + 1)
    for (x in 1..100)
        for (y in 1..100)
            for (z in 1..100) {
                val res = x * x + y * y + z * z + x * y + y * z + x * z
                if (res > m) continue
                cnt[res]++
            }
    val n = readInt()
    println(cnt.take(n + 1).takeLast(n).joinToString("\n"))
}