(* べき乗 *)
let rec ( ** ) a n =
  if n = 0 then 1
  else if n mod 2 = 1 then a * a ** (n - 1)
  else let t = a ** (n / 2) in t * t

let () =
  let n = Scanf.sscanf (input_line stdin) "%d" (fun a -> a) in
  let ans = n ** 3 in
  print_int ans;
  print_newline ()