import math

N = int(eval(input()))

ans = [0]*(N+1)

Nruto = math.sqrt(N)

Nruto = math.floor(Nruto)+1

for x in range(1, Nruto):

    for y in range(1, Nruto):

        for z in range(1, Nruto):

            n = x**2+y**2+z**2+x*y+y*z+z*x

            if n <= N:

                ans[n] += 1

for i in range(1, N+1):

    print((ans[i]))

import math

N = int(eval(input()))

ans = [0]*(N+1)

owari = math.sqrt(N)

owari = math.ceil(owari)

for x in range(1, owari):

    a = x*x

    for y in range(1, owari):

        b = y*y

        c = x*y

        for z in range(1, owari):

            hantei = z*(z+x+y)+a+b+c

            if hantei > N:

                break

            ans[hantei] += 1



for i in range(1, N+1):

    print((ans[i]))

import math

N = int(eval(input()))
ans = [0] * (N + 1)
Nruto = math.sqrt(N)
Nruto = math.floor(Nruto) + 1
for x in range(1, Nruto):
    for y in range(1, Nruto):
        for z in range(1, Nruto):
            n = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if n <= N:
                ans[n] += 1
for i in range(1, N + 1):
    print((ans[i]))

import math

N = int(eval(input()))
ans = [0] * (N + 1)
owari = math.sqrt(N)
owari = math.ceil(owari)
for x in range(1, owari):
    a = x * x
    for y in range(1, owari):
        b = y * y
        c = x * y
        for z in range(1, owari):
            hantei = z * (z + x + y) + a + b + c
            if hantei > N:
                break
            ans[hantei] += 1
for i in range(1, N + 1):
    print((ans[i]))

-Nruto = math.sqrt(N) -Nruto = math.floor(Nruto) + 1 -for x in range(1, Nruto): -    for y in range(1, Nruto): -        for z in range(1, Nruto): -            n = x**2 + y**2 + z**2 + x * y + y * z + z * x -            if n <= N: -                ans[n] += 1 +owari = math.sqrt(N) +owari = math.ceil(owari) +for x in range(1, owari): +    a = x * x +    for y in range(1, owari): +        b = y * y +        c = x * y +        for z in range(1, owari): +            hantei = z * (z + x + y) + a + b + c +            if hantei > N: +                break +            ans[hantei] += 1