#include <stdio.h>

int main()
{
	int n, a[10101] = { 0, }; scanf ("%d", &n);
	for (int x = 1; x <= 100; x++) for (int y = 1; y <= 100; y++) for (int z = 1; z <= 100; z++){
		int v = x * x + y * y + z * z + x * y + y * z + z * x;
		if (v <= n) a[v]++;
	}

	for (int i = 1; i <= n; i++) printf ("%d\n", a[i]);

	return 0;
}