#!/usr/bin/env python3
n = int(input())
points = sorted([(i+1, int(c)) for i,c in enumerate(input().split())], key=lambda x:x[1])

x, y = 1,1
result = []
for i,j in points:
    result.append("%i %i" % (i,j))
    x,y = i,j
print(*result, sep='\n')
