const ans = main( require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n") );
console.log( ans );

function main(lines) {
  const N = +lines[0];

  const cnt = Array(N+1).fill(0);
  for (let x = 1; x < 100; x++) {
    for (let y = 1; y < 100; y++) {
      for (let z = 1; z < 100; z++) {
        const val = x*x + y*y + z*z + x*y + y*z + z*x;
        if (val <= N) cnt[val]++;
      }
    }
  }

  return cnt.slice(1).join('\n');
}



function splitN(s) {
  return s.split(' ').map(Number);
}