N = int(eval(input()))

ans = [0]*(N)



if N <= 3:

  for i in range(N):

    print((0))

  exit()



M = int((N-2)**0.5)

 

for x in range(1, M+1):

  for y in range(1, M+1):

    for z in range(1, M+1):

      a = (x+y+z)**2 - (x*y + y*z + z*x)

      if a <= N:

      	ans[a-1] += 1

 

for i in range(N):

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

ans = [0]*(N)

 

for x in range(1, 101):

  for y in range(1, 101):

    for z in range(1, 101):

      a = (x+y+z)**2 - (x*y + y*z + z*x)

      if a <= N:

      	ans[a-1] += 1

 

for x in ans:

  print(x)
N = int(eval(input()))
ans = [0] * (N)
if N <= 3:
    for i in range(N):
        print((0))
    exit()
M = int((N - 2) ** 0.5)
for x in range(1, M + 1):
    for y in range(1, M + 1):
        for z in range(1, M + 1):
            a = (x + y + z) ** 2 - (x * y + y * z + z * x)
            if a <= N:
                ans[a - 1] += 1
for i in range(N):
    print((ans[i]))

N = int(eval(input()))
ans = [0] * (N)
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            a = (x + y + z) ** 2 - (x * y + y * z + z * x)
            if a <= N:
                ans[a - 1] += 1
for x in ans:
    print(x)

-if N <= 3: -    for i in range(N): -        print((0)) -    exit() -M = int((N - 2) ** 0.5) -for x in range(1, M + 1): -    for y in range(1, M + 1): -        for z in range(1, M + 1): +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): -for i in range(N): -    print((ans[i])) +for x in ans: +    print(x)