let () =
  Scanf.scanf "%d\n" @@ fun n ->
  for i = 1 to n do
    let ans = ref 0 in
    for x = 1 to n / 3 do
      for y = 1 to n / 3 do
        for z = 1 to n / 3 do
          if x * x + y * y + z * z + x * y + y * z + z * x = i
          then ans := !ans + 1
        done;
      done;
    done;
    Printf.printf "%d\n" !ans
  done;