import qualified Data.IntMap as M

readInts :: IO [Int]
readInts = map read . words <$> getLine

main :: IO ()
main = do
  getLine
  as <- readInts
  putStrLn $ unwords $ map show $ solve as

solve :: [Int] -> [Int]
solve as = go M.empty $ zip [1..] as
  where
    go mp []           = M.elems mp
    go mp ((i, a):ias) = go (M.insert a i mp) ias