def main():

    n = int(eval(input()))

    

    res = [0]*(n+1)



    for i in range(1,100):

        for j in range(1,100):

            for k in range(1,100):

                tmp = i**2 + j**2 + k**2 + i*j + j*k + k*i

                if(tmp<=n):

                    res[tmp]+=1







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

        print((res[i]))

if __name__ == '__main__':

    main()

def main():

    n = int(eval(input()))

    res = [0]*(n+1)



    for i in range(1,100):

        for j in range(1,100):

            for k in range(1,100):

                if(i**2 + j**2 + k**2 +i*j+j*k + k*i<=n):

                    res[i**2 + j**2 + k**2 +i*j+j*k + k*i]+=1

                    

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

        print((res[i]))

if __name__ == '__main__':

    main()

def main():
    n = int(eval(input()))
    res = [0] * (n + 1)
    for i in range(1, 100):
        for j in range(1, 100):
            for k in range(1, 100):
                tmp = i**2 + j**2 + k**2 + i * j + j * k + k * i
                if tmp <= n:
                    res[tmp] += 1
    for i in range(1, n + 1):
        print((res[i]))


if __name__ == "__main__":
    main()

def main():
    n = int(eval(input()))
    res = [0] * (n + 1)
    for i in range(1, 100):
        for j in range(1, 100):
            for k in range(1, 100):
                if i**2 + j**2 + k**2 + i * j + j * k + k * i <= n:
                    res[i**2 + j**2 + k**2 + i * j + j * k + k * i] += 1
    for i in range(1, n + 1):
        print((res[i]))


if __name__ == "__main__":
    main()

-                tmp = i**2 + j**2 + k**2 + i * j + j * k + k * i -                if tmp <= n: -                    res[tmp] += 1 +                if i**2 + j**2 + k**2 + i * j + j * k + k * i <= n: +                    res[i**2 + j**2 + k**2 + i * j + j * k + k * i] += 1