let split str =
  let rec split_inner ct b=
    if String.length str = ct then [b]
    else
      match str.[ct] with
        ' ' -> b::split_inner (ct+1) ""
      | c -> split_inner (ct+1) (b^(Char.escaped c))
  in split_inner 0 "";;

let () =
  let _ = read_line ()
  and r = match read_line () |> split with
      h::t -> List.fold_left (fun x y -> y^" "^x ) h t
    | _ -> ""
  in print_endline r;;