import scala.io.StdIn._

object Main extends App {


  val n = readInt()

  def solve() = {
    val lim = 100
    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 default = Map.empty[Int, Int]
    val numAndCntMap = s.foldLeft(default) { (acc, num) =>
      acc.updated(num, acc.getOrElse(num, 0)+1)
    }
    (1 to n).map { i =>
      numAndCntMap.getOrElse(i, 0)
    }.mkString("\n")
  }

  println(solve())

}

