n=int(eval(input()))

ans=0

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

  cnt=0

  for x in range(1,101):

    if x**2>i:

      break

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

      if x**2+y**2>i:

        break

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

        if x**2+y**2+z**2+x*y+y*z+z*x==i:

          if x==y==z:

            cnt+=1

          if (x>y and y==z) or (x==y and y>z):

            cnt+=3

          if x>y>z:

            cnt+=6

  ans=cnt

  print(ans)   
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):

            d = x * x + y * y + z * z + x * y + y * z + z * x

            if d <= n:

                ans[d - 1] += 1



for i in ans:

    print(i)

n = int(eval(input()))
ans = 0
for i in range(1, n + 1):
    cnt = 0
    for x in range(1, 101):
        if x**2 > i:
            break
        for y in range(1, x + 1):
            if x**2 + y**2 > i:
                break
            for z in range(1, y + 1):
                if x**2 + y**2 + z**2 + x * y + y * z + z * x == i:
                    if x == y == z:
                        cnt += 1
                    if (x > y and y == z) or (x == y and y > z):
                        cnt += 3
                    if x > y > z:
                        cnt += 6
    ans = cnt
    print(ans)

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):
            d = x * x + y * y + z * z + x * y + y * z + z * x
            if d <= n:
                ans[d - 1] += 1
for i in ans:
    print(i)

-ans = 0 -for i in range(1, n + 1): -    cnt = 0 -    for x in range(1, 101): -        if x**2 > i: -            break -        for y in range(1, x + 1): -            if x**2 + y**2 > i: -                break -            for z in range(1, y + 1): -                if x**2 + y**2 + z**2 + x * y + y * z + z * x == i: -                    if x == y == z: -                        cnt += 1 -                    if (x > y and y == z) or (x == y and y > z): -                        cnt += 3 -                    if x > y > z: -                        cnt += 6 -    ans = cnt -    print(ans) +ans = [0] * n +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): +            d = x * x + y * y + z * z + x * y + y * z + z * x +            if d <= n: +                ans[d - 1] += 1 +for i in ans: +    print(i)