import math

N = int(eval(input()))

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

    nn = int(n**0.5+1)

    ans = 0

    for x in range(1, nn):

        for y in range(1, nn):

            d = n-x*x-y*y-x*y

            if d < 0:

                break

            l, r = 0, nn

            while (r-l) > 1:

                m = (r+l)//2

                z = m*m+m*(x+y)

                if z == d:

                    ans += 1

                    break

                elif z < d:

                    l = m

                else:

                    r = m

    print(ans)

N = int(eval(input()))

a = [0]*(N+1)

for x in range(1, 101):

    for y in range(1, 101):

        for z in range(1, 101):

            d = x*x+y*y+z*z+x*y+y*z+x*z

            if d <= N:

                a[d] += 1

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

    print((a[i]))

import math

N = int(eval(input()))
for n in range(1, N + 1):
    nn = int(n**0.5 + 1)
    ans = 0
    for x in range(1, nn):
        for y in range(1, nn):
            d = n - x * x - y * y - x * y
            if d < 0:
                break
            l, r = 0, nn
            while (r - l) > 1:
                m = (r + l) // 2
                z = m * m + m * (x + y)
                if z == d:
                    ans += 1
                    break
                elif z < d:
                    l = m
                else:
                    r = m
    print(ans)

N = int(eval(input()))
a = [0] * (N + 1)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            d = x * x + y * y + z * z + x * y + y * z + x * z
            if d <= N:
                a[d] += 1
for i in range(1, N + 1):
    print((a[i]))

-import math - -for n in range(1, N + 1): -    nn = int(n**0.5 + 1) -    ans = 0 -    for x in range(1, nn): -        for y in range(1, nn): -            d = n - x * x - y * y - x * y -            if d < 0: -                break -            l, r = 0, nn -            while (r - l) > 1: -                m = (r + l) // 2 -                z = m * m + m * (x + y) -                if z == d: -                    ans += 1 -                    break -                elif z < d: -                    l = m -                else: -                    r = m -    print(ans) +a = [0] * (N + 1) +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): +            d = x * x + y * y + z * z + x * y + y * z + x * z +            if d <= N: +                a[d] += 1 +for i in range(1, N + 1): +    print((a[i]))