n = int(eval(input()))

cnt = [0]*(10**4+50)



for i in range(1,105):

  for j in range(1,105):

    for k in range(1,105):

      v = (i**2)+(j**2)+(k**2)+i*j+j*k+k*i

      if v<10**4+50:

        cnt[v] += 1

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

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

cnt = [0]*(n+1)



for i in range(1,int(n**0.5)+1):

  for j in range(1,int(n**0.5)+1):

    for k in range(1,int(n**0.5)+1):

      v = (i**2)+(j**2)+(k**2)+i*j+j*k+k*i

      if v<=n:

        cnt[v] += 1

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

  print((cnt[i]))

n = int(eval(input()))
cnt = [0] * (10**4 + 50)
for i in range(1, 105):
    for j in range(1, 105):
        for k in range(1, 105):
            v = (i**2) + (j**2) + (k**2) + i * j + j * k + k * i
            if v < 10**4 + 50:
                cnt[v] += 1
for i in range(1, n + 1):
    print((cnt[i]))

n = int(eval(input()))
cnt = [0] * (n + 1)
for i in range(1, int(n**0.5) + 1):
    for j in range(1, int(n**0.5) + 1):
        for k in range(1, int(n**0.5) + 1):
            v = (i**2) + (j**2) + (k**2) + i * j + j * k + k * i
            if v <= n:
                cnt[v] += 1
for i in range(1, n + 1):
    print((cnt[i]))

-cnt = [0] * (10**4 + 50) -for i in range(1, 105): -    for j in range(1, 105): -        for k in range(1, 105): +cnt = [0] * (n + 1) +for i in range(1, int(n**0.5) + 1): +    for j in range(1, int(n**0.5) + 1): +        for k in range(1, int(n**0.5) + 1): -            if v < 10**4 + 50: +            if v <= n: