
import Foundation

func main(){
   let n = Int(readLine()!)!

   var cache = [Int](repeating: 0, count: n+1)
   
   for x in 1...100 {
      for y in 1...100 {
         for z in 1...100 {
            let computed = x*x + y*y + z*z + x*y + y*z + z*x
            if computed <= n {
               cache[computed] += 1
            }
         }
      }
   }
   for i in 1...n {
      print(cache[i])
   }
}
main()
