import Foundation

let N = Int(readLine()!)!
var array = Array(repeating: 0, count: N)

for i in 1...N{
  for e in 1...N{
    for w in 1...N{
      let c = i * i + e * e + w * w + i * e + e * w + w * i - 1
      if(c < N){
        array[c] += 1
      }
    }
  }
}
for p in array{
  print(p)
}