n = int(eval(input()))

A = [0]*(n+1)

 

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

            a = x**2+y**2+z**2+x*y+y*z+z*x

            if a <= n:

                A[a] += 1

                

for i in range(n):

    print((A[i+1]))

        
n = int(eval(input()))

A = [0]*(n+1)

 

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

            a = x**2+y**2+z**2+x*y+y*z+z*x

            if a <= n:

                A[a] += 1

            else:

                break

            

                

for i in range(n):

    print((A[i+1]))

        
n = int(eval(input()))
A = [0] * (n + 1)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            a = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if a <= n:
                A[a] += 1
for i in range(n):
    print((A[i + 1]))

n = int(eval(input()))
A = [0] * (n + 1)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            a = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if a <= n:
                A[a] += 1
            else:
                break
for i in range(n):
    print((A[i + 1]))

+            else: +                break