n = int(eval(input()))

f = [0]*(n+1)

for x in range(1, n):

    if x*x >= n: break

    for y in range(1, n):

        if y*y >= n: break

        if x*y >= n: break

        for z in range(1, n):

            if z*z >= n: break

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

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

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

n = int(eval(input()))

f = [0]*(n+1)

for x in range(1, 100):

    for y in range(1, 100):

        for z in range(1, 100):

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

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

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

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

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

-for x in range(1, n): -    if x * x >= n: -        break -    for y in range(1, n): -        if y * y >= n: -            break -        if x * y >= n: -            break -        for z in range(1, n): -            if z * z >= n: -                break +for x in range(1, 100): +    for y in range(1, 100): +        for z in range(1, 100): -            if 1 <= k <= n: +            if k <= n: -for i in range(1, n + 1): -    print((f[i])) +for i in range(n): +    print((f[i + 1]))