import sys

import itertools as itr

readline = sys.stdin.buffer.readline







N=int(readline())

n=int(pow(N,0.5))

chk=list(itr.product(list(range(1,n)),repeat=3))

cnt=[0]*(N+1)

for _ in range(len(chk)):

  i=chk[_][0]

  j=chk[_][1]

  k=chk[_][2]

  if pow(i,2)+pow(j,2)+pow(k,2)+i*j+j*k+k*i<=N:

    cnt[pow(i,2)+pow(j,2)+pow(k,2)+i*j+j*k+k*i]+=1

          



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

  print((cnt[i]))
import sys

import itertools as itr

readline = sys.stdin.buffer.readline

N=int(readline())

n=int(pow(N,0.5))

chk=list(itr.product(list(range(1,n)),repeat=3))

cnt=[0]*(N+1)

for c in chk:

  i=c[0]

  j=c[1]

  k=c[2]

  if i*i+j*j+k*k+i*j+j*k+k*i<=N:

    cnt[i*i+j*j+k*k+i*j+j*k+k*i]+=1

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

  print((cnt[i]))
import sys
import itertools as itr

readline = sys.stdin.buffer.readline
N = int(readline())
n = int(pow(N, 0.5))
chk = list(itr.product(list(range(1, n)), repeat=3))
cnt = [0] * (N + 1)
for _ in range(len(chk)):
    i = chk[_][0]
    j = chk[_][1]
    k = chk[_][2]
    if pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i <= N:
        cnt[pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i] += 1
for i in range(1, N + 1):
    print((cnt[i]))

import sys
import itertools as itr

readline = sys.stdin.buffer.readline
N = int(readline())
n = int(pow(N, 0.5))
chk = list(itr.product(list(range(1, n)), repeat=3))
cnt = [0] * (N + 1)
for c in chk:
    i = c[0]
    j = c[1]
    k = c[2]
    if i * i + j * j + k * k + i * j + j * k + k * i <= N:
        cnt[i * i + j * j + k * k + i * j + j * k + k * i] += 1
for i in range(1, N + 1):
    print((cnt[i]))

-for _ in range(len(chk)): -    i = chk[_][0] -    j = chk[_][1] -    k = chk[_][2] -    if pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i <= N: -        cnt[pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i] += 1 +for c in chk: +    i = c[0] +    j = c[1] +    k = c[2] +    if i * i + j * j + k * k + i * j + j * k + k * i <= N: +        cnt[i * i + j * j + k * k + i * j + j * k + k * i] += 1