fun main() = Thread(null, ::aising2020c, "(^o^)", 128 * 1024 * 1024).apply { start() }.join()

@OptIn(ExperimentalStdlibApi::class)
fun aising2020c() {
    val n = readLine()!!.toInt()

    val count = LongArray(n + 1)

    for (x in 1..n) {
        for (y in 1..n) {
            for (z in 1..n) {
                val value = x * x + y * y + z * z + x * y + y * z + z * x
                if (value <= n) count[value]++ else break
            }
        }
    }

    val answer = count.drop(1).joinToString(System.lineSeparator())

    println(answer)
}
