n = int(input())



cnt = [0] * n

for x in range(1, int(n ** 0.5) + 1):

    for y in range(1, int(n ** 0.5) + 1):

        for z in range(1, int(n ** 0.5) + 1):

            num = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x

            if num <= n:

                cnt[num - 1] += 1

print(*cnt, sep="\n")

n = int(input())



cnt = [0] * n

for x in range(1, int(n ** 0.5) + 1):

    for y in range(1, int(n ** 0.5) + 1):

        for z in range(1, int(n ** 0.5) + 1):

            num = (x + y) ** 2 - x * y + z * (x + y + z)

            if num <= n:

                cnt[num - 1] += 1

print(*cnt, sep="\n")

n = int(input())
cnt = [0] * n
for x in range(1, int(n**0.5) + 1):
    for y in range(1, int(n**0.5) + 1):
        for z in range(1, int(n**0.5) + 1):
            num = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if num <= n:
                cnt[num - 1] += 1
print(*cnt, sep="\n")

n = int(input())
cnt = [0] * n
for x in range(1, int(n**0.5) + 1):
    for y in range(1, int(n**0.5) + 1):
        for z in range(1, int(n**0.5) + 1):
            num = (x + y) ** 2 - x * y + z * (x + y + z)
            if num <= n:
                cnt[num - 1] += 1
print(*cnt, sep="\n")

-            num = x**2 + y**2 + z**2 + x * y + y * z + z * x +            num = (x + y) ** 2 - x * y + z * (x + y + z)