import itertools

n=int(eval(input()))

mylist=[0]*n

a=1

while(6*(a**2)<n):

    a+=1

l=list(range(1,3*a-1))

for c in itertools.product(l,repeat=3):

    sum_num=sum(c)**2-(c[0]*c[1]+c[1]*c[2]+c[2]*c[0])

    if sum_num<=n:

        mylist[sum_num-1]+=1

for i in mylist:

    print(i)
n=int(eval(input()))

l=[0]*(10**5)

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

            l[(x*x+y*y+z*z+x*y+y*z+z*x)-1]+=1

for i in range(n):

    print((l[i]))
import itertools

n = int(eval(input()))
mylist = [0] * n
a = 1
while 6 * (a**2) < n:
    a += 1
l = list(range(1, 3 * a - 1))
for c in itertools.product(l, repeat=3):
    sum_num = sum(c) ** 2 - (c[0] * c[1] + c[1] * c[2] + c[2] * c[0])
    if sum_num <= n:
        mylist[sum_num - 1] += 1
for i in mylist:
    print(i)

n = int(eval(input()))
l = [0] * (10**5)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            l[(x * x + y * y + z * z + x * y + y * z + z * x) - 1] += 1
for i in range(n):
    print((l[i]))

-import itertools - -mylist = [0] * n -a = 1 -while 6 * (a**2) < n: -    a += 1 -l = list(range(1, 3 * a - 1)) -for c in itertools.product(l, repeat=3): -    sum_num = sum(c) ** 2 - (c[0] * c[1] + c[1] * c[2] + c[2] * c[0]) -    if sum_num <= n: -        mylist[sum_num - 1] += 1 -for i in mylist: -    print(i) +l = [0] * (10**5) +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): +            l[(x * x + y * y + z * z + x * y + y * z + z * x) - 1] += 1 +for i in range(n): +    print((l[i]))