import sys





def input(): return sys.stdin.readline().strip()

def I(): return int(eval(input()))





n = I()

cnt = [0] * 10001

for x in range(1, 101):

    for y in range(1, 101):

        for z in range(1, 101):

            v = x**2 + y**2 + z**2 + x*y + y*z + z*x

            if v <= n:

                cnt[v] += 1



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

    print((cnt[i]))

import sys





def input(): return sys.stdin.readline().strip()

def I(): return int(eval(input()))





n = I()

cnt = [0] * 10001

for x in range(1, 101):

    for y in range(1, 101):

        for z in range(1, 101):

            v = x*x + y*y + z*z + x*y + y*z + z*x

            if v <= n:

                cnt[v] += 1



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

    print((cnt[i]))

import sys


def input():
    return sys.stdin.readline().strip()


def I():
    return int(eval(input()))


n = I()
cnt = [0] * 10001
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            v = x**2 + y**2 + z**2 + x * y + y * z + z * x
            if v <= n:
                cnt[v] += 1
for i in range(1, n + 1):
    print((cnt[i]))

import sys


def input():
    return sys.stdin.readline().strip()


def I():
    return int(eval(input()))


n = I()
cnt = [0] * 10001
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            v = x * x + y * y + z * z + x * y + y * z + z * x
            if v <= n:
                cnt[v] += 1
for i in range(1, n + 1):
    print((cnt[i]))

-            v = x**2 + y**2 + z**2 + x * y + y * z + z * x +            v = x * x + y * y + z * z + x * y + y * z + z * x