import Foundation

let N = Int(readLine()!)!
var dp: [[[Int]]] = .init(repeating: .init(repeating: .init(repeating: -1, count: N + 1), count: N + 1), count: N + 1)
let n = Int(sqrt(Double(N)))
var count: [Int] = .init(repeating: 0, count: N)

for x in 1...n {
  for y in 1...n {
    for z in 1...n {
      dp[x][y][z] = x * x + x * y + y * y + y * z + z * z + z * x
      if 1...N ~= dp[x][y][z] {
        count[dp[x][y][z] - 1] += 1
      }
    }
  }
}

for i in 0..<N {
  print(count[i])
}