object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var n = sc.nextInt()
  var ans = Array.fill(200050)(0)
  var a = 17
  for (i <- 1 to 105){
    for (j <- 1 to 105) {
      for (k <- 1 to 105) {
        ans(i*i+j*j+k*k+i*j+j*k+k*i)+=1
      }
    }
  }
  for (i <- 0 to n){
    println(ans(i))
  }
}
