from collections import defaultdict



N = int(eval(input()))

ctr = defaultdict(int)

for x in range(1, 100):

    for y in range(1, 100):

        for z in range(1, 100):

            res = x**2 + y**2 + z**2 + x*y + y*z + z*x

            ctr[res] += 1



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

    print((ctr[n]))



N = int(input())



ans = [0] * (N + 1)



for x in range(1, 100):

    for y in range(1, 100):

        for z in range(1, 100):

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

            if n <= N:

                ans[n] += 1



print(*ans[1:], sep="\n")

from collections import defaultdict

N = int(eval(input()))
ctr = defaultdict(int)
for x in range(1, 100):
    for y in range(1, 100):
        for z in range(1, 100):
            res = x**2 + y**2 + z**2 + x * y + y * z + z * x
            ctr[res] += 1
for n in range(1, N + 1):
    print((ctr[n]))

N = int(input())
ans = [0] * (N + 1)
for x in range(1, 100):
    for y in range(1, 100):
        for z in range(1, 100):
            n = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if n <= N:
                ans[n] += 1
print(*ans[1:], sep="\n")

-from collections import defaultdict - -N = int(eval(input())) -ctr = defaultdict(int) +N = int(input()) +ans = [0] * (N + 1) -            res = x**2 + y**2 + z**2 + x * y + y * z + z * x -            ctr[res] += 1 -for n in range(1, N + 1): -    print((ctr[n])) +            n = x**2 + y**2 + z**2 + x * y + y * z + z * x +            if n <= N: +                ans[n] += 1 +print(*ans[1:], sep="\n")