Security Permutations

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    
    n = int(input().strip())
    f = [0] + list(map(int, input().strip().split()))
    
    
    for i in range(1, n+1):
            print(f[f[i]])