
import Foundation

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

   for i in 1...n {
      var answer = 0
      outerLoop: for x in 1...i {
         for y in 1...i {
            for z in 1...i {
               let computed = x*x + y*y + z*z + x*y + y*z + z*x
               if computed == i {
                  answer += 1
               } else if computed > i && y == 1 && z == 1 {
                  break outerLoop
               }
            }
         }
      }
      print(answer)
   }
}
main()