console.log((args=>{
  const N = args.trim()|0;
  const a = Array(N).fill(0);
  for ( let x = 1; x*x < N; x++ ) {
    for ( let y = 1; y*y < N; y++ ) {
      for ( let z = 1; z*z < N; z++ ) {
        const i = x*x + y*y + z*z + x*y + y*z + z*x;
        if ( i > N ) break;
        a[i-1]++;
      }
    }
  }
  return a.join`\n`;
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
