n=int(eval(input()))

l=[0]*(10**5)

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

            l[(x*x+y*y+z*z+x*y+y*z+z*x)-1]+=1

for i in range(n):

    print((l[i]))
n=int(eval(input()))

l=[0]*(6*(10**4))

for x in range(1,101):

    for y in range(1,101):

        for z in range(1,101):

            l[(x*x+y*y+z*z+x*y+y*z+z*x)-1]+=1

for i in range(n):

    print((l[i]))

n = int(eval(input()))
l = [0] * (10**5)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            l[(x * x + y * y + z * z + x * y + y * z + z * x) - 1] += 1
for i in range(n):
    print((l[i]))

n = int(eval(input()))
l = [0] * (6 * (10**4))
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            l[(x * x + y * y + z * z + x * y + y * z + z * x) - 1] += 1
for i in range(n):
    print((l[i]))

-l = [0] * (10**5) +l = [0] * (6 * (10**4))