import scala.io.StdIn._

object Main extends App {


  val n = readInt()

  def solve() = {
    val lim = 41
    val s = for {
      x <- 1 to lim
      y <- 1 to lim
      z <- 1 to lim
    } yield {
      x*x + y*y + z*z + x*y + y*z + z*x
    }
    val numAndCntMap = s.groupBy(identity).mapValues(_.length)
    (1 to n).map { i =>
      numAndCntMap.getOrElse(i, 0)
    }.mkString("\n")
  }

  println(solve())

}

