There are n cards (n is even) in the deck. Each card has a positive integer written on it. n / 2 people will play new card game. At the beginning of the game each player gets two cards, each card is given to exactly one player. 

Find the way to distribute cards such that the sum of values written of the cards will be equal for each player. It is guaranteed that it is always possible.


-----Input-----

The first line of the input contains integer n (2 ≤ n ≤ 100) — the number of cards in the deck. It is guaranteed that n is even.

The second line contains the sequence of n positive integers a_1, a_2, ..., a_{n} (1 ≤ a_{i} ≤ 100), where a_{i} is equal to the number written on the i-th card.


-----Output-----

Print n / 2 pairs of integers, the i-th pair denote the cards that should be given to the i-th player. Each card should be given to exactly one player. Cards are numbered in the order they appear in the input.

It is guaranteed that solution exists. If there are several correct answers, you are allowed to print any of them.


-----Examples-----
Input
6
1 5 7 4 4 3

Output
1 3
6 2
4 5

Input
4
10 10 10 10

Output
1 2
3 4



-----Note-----

In the first sample, cards are distributed in such a way that each player has the sum of numbers written on his cards equal to 8. 

In the second sample, all values a_{i} are equal. Thus, any distribution is acceptable.

Difficulty: interview

Starter code:

Solutions:
n = int(input())
A = list(map(int, input().split()))
for i in range(n):
    A[i] = [A[i], i+1]
A.sort()
for i in range(n//2):
    print(A[i][1], A[n-i-1][1])

import sys, math
n=int(input())
z=list(map(int,input().split()))
for i in range(n):
    z[i]=[z[i],i+1]
z.sort()
for i in range(n//2):
    print(z[i][1],z[n-1-i][1])


n = int(input())
a = list(map(int,input().split()))
for i in range(n):
    a[i] = (a[i], i + 1)
a.sort()
for i in range(n//2):
    print(a[i][1], a[n-i-1][1])

n = int(input())
s = [int(i) for i in input().split()]
t = []
for i in range(n):
	t.append((s[i], i+1))
r = (sum(s)//(n//2))
t.sort()
for i in range(n//2):
	print(t[i][1], t[n-i-1][1])



n=int(input())
l=input().split()
s=sorted([(int(l[i]),i+1) for i in range(n)])
for i in range(n//2):
    print(s[i][1],s[-1-i][1])

n=int(input())
ip=list(map(int,input().split()))
ip2=[]
for i in range(n):
    ip2.append((i,ip[i]))
ip2=sorted(ip2, key=lambda x:x[1])
for i in range(n//2):
    print(ip2[i][0]+1,ip2[n-i-1][0]+1)


read = lambda: list(map(int, input().split()))
n = int(input())
a = list(read())
a = [(a[i], i + 1) for i in range(n)]
a.sort()
for i in range(n // 2):
    print(a[i][1], a[n - i - 1][1])



n = int(input())
a = sorted(enumerate(map(int, input().split())), key=lambda x: x[1])

for idx in range(n//2):
    print('{} {}'.format(a[idx][0] + 1, a[-(idx + 1)][0] + 1))


n = int(input())

a = list(map(int, input().split()))
l = []
for i in range(len(a)):
    l.append((i + 1, a[i]))
l.sort(key=lambda x: x[1])
for i in range(n//2):
    print(l[i][0], l[n - i - 1][0])


n = int(input())
l = list(map(int, input().split()))

lst = []
for i in range(n):
	lst.append([i, l[i]])

# print(lst)
p_cnt = n // 2

one = sum(l) // p_cnt

while lst:
	f = lst[-1]
	for i in range(len(lst)):
		x = lst[i]
		if x[1] + f[1] == one:
			s = x
			print(f[0] + 1, s[0] + 1)
			lst.pop(i)
			lst.pop()
			break