import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    auto n = lread();
    auto x = new long[](10 ^^ 6 + 10);
    foreach (i; 1 .. 101)
    {
        foreach (j; 1 .. 101)
        {
            foreach (k; 1 .. 101)
            {
                long tmp = 0;
                tmp = i ^^ 2 + j ^^ 2 + k ^^ 2 + i * j + j * k + i * k;
                if (tmp <= 10 ^^ 4)
                {
                    x[tmp - 1] += 1;
                }
            }
        }
    }
    foreach (i; 0 .. n)
    {
        writeln(x[i]);
    }
}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
