N = int(eval(input()))

cnt = [0] * (N + 1)



for x in range(1,100):

    for y in range(1,100):

        for z in range(1,100):

            check = x*x + y*y + z*z + x*y + y*z + z*x

            if check <= N:

                cnt[check] += 1



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

    print((cnt[i]))
N = int(eval(input()))

cnt = [0] * (N + 1)



for x in range(1,100):

    for y in range(1,100):

        for z in range(1,100):

            check = x*x + y*y + z*z + x*y + y*z + z*x

            if check <= N:

                cnt[check] += 1

            else:

                break



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

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

N = int(eval(input()))
cnt = [0] * (N + 1)
for x in range(1, 100):
    for y in range(1, 100):
        for z in range(1, 100):
            check = x * x + y * y + z * z + x * y + y * z + z * x
            if check <= N:
                cnt[check] += 1
            else:
                break
for i in range(1, N + 1):
    print((cnt[i]))

+            else: +                break