//let input = "20";

function main(input){
  input = input.trim();
  let n = parseInt(input);
  let count = 0;
  for(let i = 1; i<=n; i++){
    count = 0;
    let kaisuu = Math.floor(Math.sqrt(i));
    for(let x = 1; x<=kaisuu; x++){
      for(let y = 1; y<=kaisuu; y++){
        for(let z = 1; z<=kaisuu; z++){
          if(x*x+y*y+z*z+x*y+y*z+z*x===i){
            count++;
          }
        }//z
      }//y
    }//x
    console.log(count);
  }//i
}
//main(input);
main(require("fs").readFileSync("/dev/stdin", "utf8"));