type pair = {
  order:int;
  id:int
}

let () = Scanf.scanf "%d" @@ fun n -> 
  let array = Array.init n @@ fun i -> Scanf.scanf " %d" @@ fun a -> {order = a; id = i+1} in
  let compare p1 p2 =
    match p1 with {order = order1; id = id1} ->
    match p2 with {order = order2; id = id2} ->
    if order1 = order2 && id1 = id2 then 0
    else if order1 > order2 then 1
    else if order1 = order2 && id1 > id2 then 1
    else -1 in
  Array.sort compare array;
  for i = 1 to n do
    match array.(i-1) with {order = _; id = ans} ->
    if i = 1 then Printf.printf "%d" ans
    else Printf.printf " %d" ans
  done;