import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextLong()

  val map = mutableMapOf<Long, Int>()

  for (x in 1L..100L) {
    for (y in 1L..100L) {
      for (z in 1L..100L) {

        val tmp = x * x + y * y + z * z + x * y + y * z + z * x
        val value = map.getOrElse(tmp) { 0 }
        map.put(tmp, value+1)
      }
    }
  }

  for (i in 1L..n) {
    val value = map.getOrElse(i) { 0 }
    println(value)
  }

}
