program main
    integer:: i,j,k
    integer:: n
    integer,allocatable:: a(:), ret(:)
    read*, n
    allocate(a(n),ret(n))
    read*, a

    do i=1, n
        ret(a(i)) = i 
    enddo

    print*, ret(1:n)
end program