#AIsing2020 c

 

import sys,math,collections,itertools

input = sys.stdin.readline

 

N = int(eval(input()))

ans = [0]*N

 

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

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

            if n <= N:

                ans[n-1] +=1

                

 

for i in range(N):

    print((ans[i]))

      
#AIsing2020 c

 

import sys,math,collections,itertools

input = sys.stdin.readline

 

N = int(eval(input()))

ans = [0]*N

 

for x in range(1,101):

    for y in range(x+1,101):

        for z in range(y+1,101):

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

            if n <= N:

                ans[n-1] +=6

                

for x in range(1,101):

    y = x

    for z in range(1,101):

        if z == x:

            continue

        else:

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

            if n <= N:

                ans[n-1] +=3

 

for x in range(1,101):

    y = x

    z = x

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

    if n <= N:

        ans[n-1] +=1

        

for i in range(N):

    print((ans[i]))

        
# AIsing2020 c
import sys, math, collections, itertools

input = sys.stdin.readline
N = int(eval(input()))
ans = [0] * N
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            n = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if n <= N:
                ans[n - 1] += 1
for i in range(N):
    print((ans[i]))

# AIsing2020 c
import sys, math, collections, itertools

input = sys.stdin.readline
N = int(eval(input()))
ans = [0] * N
for x in range(1, 101):
    for y in range(x + 1, 101):
        for z in range(y + 1, 101):
            n = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if n <= N:
                ans[n - 1] += 6
for x in range(1, 101):
    y = x
    for z in range(1, 101):
        if z == x:
            continue
        else:
            n = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if n <= N:
                ans[n - 1] += 3
for x in range(1, 101):
    y = x
    z = x
    n = x**2 + y**2 + z**2 + x * y + y * z + z * x
    if n <= N:
        ans[n - 1] += 1
for i in range(N):
    print((ans[i]))

-    for y in range(1, 101): -        for z in range(1, 101): +    for y in range(x + 1, 101): +        for z in range(y + 1, 101): -                ans[n - 1] += 1 +                ans[n - 1] += 6 +for x in range(1, 101): +    y = x +    for z in range(1, 101): +        if z == x: +            continue +        else: +            n = x**2 + y**2 + z**2 + x * y + y * z + z * x +            if n <= N: +                ans[n - 1] += 3 +for x in range(1, 101): +    y = x +    z = x +    n = x**2 + y**2 + z**2 + x * y + y * z + z * x +    if n <= N: +        ans[n - 1] += 1