from logging import *

basicConfig(level=DEBUG, format='%(levelname)s: %(message)s')

disable(CRITICAL)



n = int(eval(input()))



f = [0]*(n+1)

x = 1

while x*x < n:

    y = 1

    while y*y < n:

        if x*y >= n: continue

        z = 1

        while z*z < n:

            k = x*x + y*y + z*z + x*y + y*z + z*x

            if 1<=k<=n:

                debug('x {} y {} z {} k {}'.format(x,y,z,k))

                f[k] += 1

            z += 1

        y += 1

    x += 1

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

    debug('f[{}] {}'.format(i,f[i]))

    print((f[i]))

n = int(eval(input()))

f = [0]*(n+1)

x = 1

while x*x < n:

    y = 1

    while y*y < n:

        if x*y >= n: continue

        z = 1

        while z*z < n:

            k = x*x + y*y + z*z + x*y + y*z + z*x

            if 1 <= k <= n: f[k] += 1

            z += 1

        y += 1

    x += 1

for i in range(1, n+1): print((f[i]))

from logging import *

basicConfig(level=DEBUG, format="%(levelname)s: %(message)s")
disable(CRITICAL)
n = int(eval(input()))
f = [0] * (n + 1)
x = 1
while x * x < n:
    y = 1
    while y * y < n:
        if x * y >= n:
            continue
        z = 1
        while z * z < n:
            k = x * x + y * y + z * z + x * y + y * z + z * x
            if 1 <= k <= n:
                debug("x {} y {} z {} k {}".format(x, y, z, k))
                f[k] += 1
            z += 1
        y += 1
    x += 1
for i in range(1, n + 1):
    debug("f[{}] {}".format(i, f[i]))
    print((f[i]))

n = int(eval(input()))
f = [0] * (n + 1)
x = 1
while x * x < n:
    y = 1
    while y * y < n:
        if x * y >= n:
            continue
        z = 1
        while z * z < n:
            k = x * x + y * y + z * z + x * y + y * z + z * x
            if 1 <= k <= n:
                f[k] += 1
            z += 1
        y += 1
    x += 1
for i in range(1, n + 1):
    print((f[i]))

-from logging import * - -basicConfig(level=DEBUG, format="%(levelname)s: %(message)s") -disable(CRITICAL) -                debug("x {} y {} z {} k {}".format(x, y, z, k)) -    debug("f[{}] {}".format(i, f[i]))