let n = Scanf.scanf " %d" (+) 0
let a_s = Array.init n @@ fun i -> Scanf.scanf " %d" @@ fun a -> a, i + 1
let _ = Array.(sort compare a_s; iteri (fun i (_, j) -> Printf.printf (if i = 0 then "%d" else " %d") j) a_s; print_newline ())