#include <iostream>
using namespace std;
int main() {
  int N, v[10001]{};
  cin >> N;
  for (int x = 1; x != 100; ++x) {
    for (int y = 1; y != 100; ++y) {
      for (int z = 1; z != 100; ++z) {
        int f = x * x + y * y + z * z + x * y + y * z + z * x;
        if (f <= N) ++v[f];
      }
    }
  }
  for (int n = 1; n <= N; ++n) cout << v[n] << endl;
}
