object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val array = Array.ofDim[Int](10001)
  for {
    x <- 1 to 100
    y <- 1 to 100
    z <- 1 to 100
    result = x * x + y * y + z * z + x * y + y * z + z * x
    if result <= 10000
  } array(result) += 1
  1.to(N).foreach(i => println(array(i)))
}
