#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  int buf[100000];
  int n = 0;
  for (int x=1; x < 100; x++) for (int y=1; y < 100; y++) for (int z=1; z < 100; z++) {
    n = x*x + y*y + z*z + x*y + y*z + z*x;
    buf[n] += 1; 
  }
  for (int i=1; i < N + 1; i++) {
    cout << buf[i] << endl;
  }
}
