import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
//auto PS = new Tuple!(long,string)[](M);
//x[]=1;でlong[]全要素1に初期化
void main()
{
    auto n = lread();
    auto tmp = new long[](10 ^^ 5);
    foreach (i; 1 .. 101)
    {
        foreach (j; 1 .. 101)
        {
            foreach (k; 1 .. 101)
            {
                long tmptmp;
                tmptmp = i ^^ 2 + j ^^ 2 + k ^^ 2 + i * j + i * k + j * k;
                if (tmptmp <= 10 ^^ 4)
                {
                    tmp[tmptmp] += 1;
                }
            }
        }
    }
    foreach (i; 0 .. n + 1)
    {
        writeln(tmp[i]);
    }
}

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

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
