N = int(eval(input()))

a = [0]*10050

for i in range(1,105):

    for j in range(1,105):

        for k in range(1,105):

            v = i*i+j*j+k*k+i*j+i*k+j*k

            if v < 10050:

                a[v-1] += 1



for i in range(N):

    print((a[i]))

N = int(eval(input()))

a = [0]*10050

for i in range(1,100):

    for j in range(1,100):

        for k in range(1,100):

            v = i*i+j*j+k*k+i*j+i*k+j*k

            if v <= 10000:

                a[v-1] += 1



for i in range(N):

    print((a[i]))

N = int(eval(input()))
a = [0] * 10050
for i in range(1, 105):
    for j in range(1, 105):
        for k in range(1, 105):
            v = i * i + j * j + k * k + i * j + i * k + j * k
            if v < 10050:
                a[v - 1] += 1
for i in range(N):
    print((a[i]))

N = int(eval(input()))
a = [0] * 10050
for i in range(1, 100):
    for j in range(1, 100):
        for k in range(1, 100):
            v = i * i + j * j + k * k + i * j + i * k + j * k
            if v <= 10000:
                a[v - 1] += 1
for i in range(N):
    print((a[i]))

-for i in range(1, 105): -    for j in range(1, 105): -        for k in range(1, 105): +for i in range(1, 100): +    for j in range(1, 100): +        for k in range(1, 100): -            if v < 10050: +            if v <= 10000: