import collections

import sys

input = sys.stdin.readline



n= int(eval(input()))

# ans = [0]*n

tmp = []



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):

            tmp.append(x**2+y**2+z**2+x*y+y*z+z*x)

cnt = collections.Counter(tmp)



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

    print((cnt[i]))

n = int(eval(input()))

cnt = [0]*11000



for x in range(1,101):

    for y in range(1, 101):

        for z in range(1, 101):

            value = x*x + y*y + z*z + x*y + y*z + z*x

            if value <= n:

                cnt[value] += 1



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

    print((cnt[i]))

    
import collections
import sys

input = sys.stdin.readline
n = int(eval(input()))
# ans = [0]*n
tmp = []
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):
            tmp.append(x**2 + y**2 + z**2 + x * y + y * z + z * x)
cnt = collections.Counter(tmp)
for i in range(1, n + 1):
    print((cnt[i]))

n = int(eval(input()))
cnt = [0] * 11000
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            value = x * x + y * y + z * z + x * y + y * z + z * x
            if value <= n:
                cnt[value] += 1
for i in range(1, n + 1):
    print((cnt[i]))

-import collections -import sys - -input = sys.stdin.readline -# ans = [0]*n -tmp = [] -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): -            tmp.append(x**2 + y**2 + z**2 + x * y + y * z + z * x) -cnt = collections.Counter(tmp) +cnt = [0] * 11000 +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): +            value = x * x + y * y + z * z + x * y + y * z + z * x +            if value <= n: +                cnt[value] += 1