"use strict";

const main = arg => {
  const input = arg.trim();

  const N = parseInt(input);
  const ary = [...Array(N)].map(_ => 0);

  const m = Math.floor(Math.sqrt(N - 1) - 1);

  for (let x = 1; x <= m; x++) {
    for (let y = 1; y <= m; y++) {
      for (let z = 1; z <= m; z++) {
        const f = x * x + y * y + z * z + x * y + y * z + z * x;
        if (f <= N) {
          ary[f - 1]++
        }
      }
    }
  }

  console.log(ary.join('\n'));
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));