let cmp a b = if snd a = snd b then 0 else if snd a > snd b then 1 else -1

let () =
  let n = read_int () in
  let st = Array.init n (fun i -> Scanf.scanf " %d" (fun a -> (i + 1, a))) in
  Array.sort cmp st ;
  Array.iter (fun a -> Printf.printf "%d " (fst a)) st
