
import Foundation

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

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