open Batteries

let rec pow n i  =
  if i * i <=  n then
    pow n @@ (+) i 1
  else
    let p = pred i in
    ( * ) p p

let main () =
  let n = int_of_string @@ input_line stdin in
  print_int @@ pow n 1

let () = main ()
