object Main {
  def main(args: Array[String]): Unit = {
    import java.util.Scanner
    val in = new Scanner(System.in)
    val n = in.nextInt
    val a = List.fill(n)(in.nextInt)
    val cameChilds = a.map(x => a(x - 1))
    val zipWithChilds = (0 until n).map(i => (a(i), cameChilds(i)))
    val sortedA = zipWithChilds.sortBy(_._2)
    val answer = sortedA.map(_._1)
    answer.foreach(x => print(x + " "))
  }
}