import scala.io.StdIn._

object Main extends App {


  val n = readInt()

  def solve() = {
    val ansArr = Array.fill(10050)(0)
    val lim = 105
    for {
      x <- 1 to lim
      y <- 1 to lim
      z <- 1 to lim
    } yield {
      val v = x*x + y*y + z*z + x*y + y*z + z*x
      if(v < 10050) ansArr(v) += 1
    }
    ansArr.mkString("\n")
  }

  println(solve())

}

