import std.stdio;

void main() {
    int n;
    readf("%d\n", &n);
    long[long] f;
    for(int x = 1; x*x <= n; x++) {
        for(int y = 1; y*y <= n; y++) {
            for(int z = 1; z*z <= n; z++) {
                long result = x*x+y*y+z*z+x*y+y*z+z*x;
                if(result in f) {
                    f[result] += 1;
                } else {
                    f[result] = 1;
                }
            }
        }
    }
    for(int i = 1; i <= n; i++) {
        if(i in f)
            f[i].writeln;
        else
            0.writeln;
    }
}
