N = int(eval(input()))



ans = [0] * (N + 1)

for x in range(1, 105):

    for y in range(1, 105):

        for z in range(1, 105):

            v = x * x + y * y + z * z + x * y + y * z + z * x

            if v <= N:

                ans[v] += 1



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

    print((ans[i]))
from collections import Counter



N = int(eval(input()))



C = Counter(

    x * x + y * y + z * z + x * y + y * z + z * x

    for x in range(1, 105) for y in range(1, 105) for z in range(1, 105)

)



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

    print((C[i]))
N = int(eval(input()))
ans = [0] * (N + 1)
for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            v = x * x + y * y + z * z + x * y + y * z + z * x
            if v <= N:
                ans[v] += 1
for i in range(1, N + 1):
    print((ans[i]))

from collections import Counter

N = int(eval(input()))
C = Counter(
    x * x + y * y + z * z + x * y + y * z + z * x
    for x in range(1, 105)
    for y in range(1, 105)
    for z in range(1, 105)
)
for i in range(1, N + 1):
    print((C[i]))

+from collections import Counter + -ans = [0] * (N + 1) -for x in range(1, 105): -    for y in range(1, 105): -        for z in range(1, 105): -            v = x * x + y * y + z * z + x * y + y * z + z * x -            if v <= N: -                ans[v] += 1 +C = Counter( +    x * x + y * y + z * z + x * y + y * z + z * x +    for x in range(1, 105) +    for y in range(1, 105) +    for z in range(1, 105) +) -    print((ans[i])) +    print((C[i]))