import sys

read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines



def main():

    N = int(readline())



    f = [0] * (N+1)

    for x in range(1,100):

        for y in range(1,100):

            for z in range(1,100):

                tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x

                if tmp <= N:

                    f[tmp] += 1

    

    print(("\n".join(map(str, f[1:]))))





if __name__ == "__main__":

    main()

import sys

read = sys.stdin.read

readline = sys.stdin.readline

readlines = sys.stdin.readlines



def main():

    N = int(readline())



    f = [0] * (N+1)

    for x in range(1,100):

        for y in range(1,100):

            for z in range(1,100):

                tmp = x*x + y*y + z*z + x*y + y*z + z*x

                if tmp <= N:

                    f[tmp] += 1

    

    print(("\n".join(map(str, f[1:]))))





if __name__ == "__main__":

    main()

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines


def main():
    N = int(readline())
    f = [0] * (N + 1)
    for x in range(1, 100):
        for y in range(1, 100):
            for z in range(1, 100):
                tmp = x**2 + y**2 + z**2 + x * y + y * z + z * x
                if tmp <= N:
                    f[tmp] += 1
    print(("\n".join(map(str, f[1:]))))


if __name__ == "__main__":
    main()

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines


def main():
    N = int(readline())
    f = [0] * (N + 1)
    for x in range(1, 100):
        for y in range(1, 100):
            for z in range(1, 100):
                tmp = x * x + y * y + z * z + x * y + y * z + z * x
                if tmp <= N:
                    f[tmp] += 1
    print(("\n".join(map(str, f[1:]))))


if __name__ == "__main__":
    main()

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