let n = Scanf.sscanf (read_line ()) "%d" @@ fun n -> n

let arr = Array.make 1001 0

let () =
  for i = 1 to 20 do
    for j = 1 to 20 do
      for k = 1 to 20 do
        let t = i * i + j * j + k * k + i * j + j * k + k * i in
        if t <= 1000 then arr.(t - 1) <- arr.(t - 1) + 1;
      done
    done
  done;
  for i = 1 to n do
    Printf.printf "%d\n" arr.(i - 1)
  done