N = int(eval(input()))

ls = [0]*(N+2)



for i in range(1,151):

    for j in range(1,151):

        for k in range(1,151):

            t = i*i + j*j + k*k + i*j + j*k + k*i 

            if t <= N :

                ls[t] += 1



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

    print((ls[p]))
N = int(eval(input()))

ls = [0]*(N+2)



for i in range(1,100):

    for j in range(1,100):

        for k in range(1,100):

            t = i**2 + j**2 + k**2 + i*j + j*k + k*i 

            if t <= N :

                ls[t] += 1



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

    print((ls[p]))
N = int(eval(input()))
ls = [0] * (N + 2)
for i in range(1, 151):
    for j in range(1, 151):
        for k in range(1, 151):
            t = i * i + j * j + k * k + i * j + j * k + k * i
            if t <= N:
                ls[t] += 1
for p in range(1, N + 1):
    print((ls[p]))

N = int(eval(input()))
ls = [0] * (N + 2)
for i in range(1, 100):
    for j in range(1, 100):
        for k in range(1, 100):
            t = i**2 + j**2 + k**2 + i * j + j * k + k * i
            if t <= N:
                ls[t] += 1
for p in range(1, N + 1):
    print((ls[p]))

-for i in range(1, 151): -    for j in range(1, 151): -        for k in range(1, 151): -            t = i * i + j * j + k * k + i * j + j * k + k * i +for i in range(1, 100): +    for j in range(1, 100): +        for k in range(1, 100): +            t = i**2 + j**2 + k**2 + i * j + j * k + k * i