As you know, all the kids in Berland love playing with cubes. Little Petya has n towers consisting of cubes of the same size. Tower with number i consists of a_{i} cubes stacked one on top of the other. Petya defines the instability of a set of towers as a value equal to the difference between the heights of the highest and the lowest of the towers. For example, if Petya built five cube towers with heights (8, 3, 2, 6, 3), the instability of this set is equal to 6 (the highest tower has height 8, the lowest one has height 2). 

The boy wants the instability of his set of towers to be as low as possible. All he can do is to perform the following operation several times: take the top cube from some tower and put it on top of some other tower of his set. Please note that Petya would never put the cube on the same tower from which it was removed because he thinks it's a waste of time. 

Before going to school, the boy will have time to perform no more than k such operations. Petya does not want to be late for class, so you have to help him accomplish this task.


-----Input-----

The first line contains two space-separated positive integers n and k (1 ≤ n ≤ 100, 1 ≤ k ≤ 1000) — the number of towers in the given set and the maximum number of operations Petya can perform. The second line contains n space-separated positive integers a_{i} (1 ≤ a_{i} ≤ 10^4) — the towers' initial heights.


-----Output-----

In the first line print two space-separated non-negative integers s and m (m ≤ k). The first number is the value of the minimum possible instability that can be obtained after performing at most k operations, the second number is the number of operations needed for that.

In the next m lines print the description of each operation as two positive integers i and j, each of them lies within limits from 1 to n. They represent that Petya took the top cube from the i-th tower and put in on the j-th one (i ≠ j). Note that in the process of performing operations the heights of some towers can become equal to zero.

If there are multiple correct sequences at which the minimum possible instability is achieved, you are allowed to print any of them.


-----Examples-----
Input
3 2
5 8 5

Output
0 2
2 1
2 3

Input
3 4
2 2 4

Output
1 1
3 2

Input
5 3
8 3 2 6 3

Output
3 3
1 3
1 2
1 3



-----Note-----

In the first sample you need to move the cubes two times, from the second tower to the third one and from the second one to the first one. Then the heights of the towers are all the same and equal to 6.

Difficulty: interview

Starter code:

Solutions:
inpt=input().split(' ')
n=int(inpt[0])
k=int(inpt[1])
i_lst=[]
j_lst=[]
m=0
inpt=input().split(' ')
for i in range(len(inpt)):
    inpt[i]=int(inpt[i])
for i in range(k):
    mn=min(inpt)
    mx=max(inpt)
    if mn!=mx:
        i_mn=inpt.index(mn)
        i_mx=inpt.index(mx)
        inpt[i_mn]+=1
        inpt[i_mx]-=1
        i_lst.append(i_mx)
        j_lst.append(i_mn)
        m+=1
    else:
        break
#print(inpt)
instblity=max(inpt)-min(inpt)
print(str(instblity)+' '+str(m))
for i in range(len(i_lst)):
    print(str(i_lst[i]+1)+' '+str(j_lst[i]+1))


n, k = list(map(int, input().split(" ")))
t = list(map(int, input().split(" ")))

inst = max(t) - min(t)
i = 0
steps = []

while inst > 0 and i < k:
    imax = t.index(max(t))
    imin = t.index(min(t))
    steps.append(imax+1)
    steps.append(imin+1)

    t[imax] -= 1
    t[imin] += 1
    inst = max(t) - min(t)
    i += 1

print(inst, i)
for i in range(0, len(steps), 2):
    print(steps[i], steps[i+1])


n, k = list(map(int, input().split()))
a = list(map(int, input().split()))

actions = [ ]
for i in range(k):
    max_index = min_index = 0
    max_value = min_value = a[0]
    for j, value in enumerate(a):
        if value > max_value:
            max_index = j
            max_value = value
        elif value < min_value:
            min_index = j
            min_value = value
    if max_value == min_value:
        break
    actions.append((max_index, min_index))
    a[max_index] -= 1
    a[min_index] += 1
print(max(a) - min(a), len(actions))
for i, j in actions:
    print(i + 1, j + 1)


f = input()
s = input()
a = f.split(' ')
n = int(a[0])
k = int(a[1])
a = s.split(' ')

i = 0
while(i < n):
	a[i] = int(a[i])
	i = i + 1

ans = -1
v1 = list()
v2 = list()
while(k > 0):
	posmn = -1
	posmx = -1
	mn = 2**16
	mx = -1
	i = 0
	while(i < n):
		if(mn > a[i]):
			mn = a[i]
			posmn = i
		if(mx < a[i]):
			mx = a[i]
			posmx = i
		i = i + 1
	if(mx == mn):
		ans = 0
		break
	v1.append(posmx + 1)
	v2.append(posmn + 1)
	a[posmx] = a[posmx] - 1
	a[posmn] = a[posmn] + 1
	k = k - 1
i = 0
mx = -1
mn = 2**16
while(i < n):
	mn = min(mn, a[i])
	mx = max(mx, a[i])
	i = i + 1
ans = mx - mn
print(str(ans) + ' ' + str(len(v1)))
i = 0
while(i < len(v1)):
	print(str(v1[i]) + ' ' + str(v2[i]))
	i = i + 1

import functools
import operator
info_data = list(map(int, input().split()))
data = list(map(int, input().split()))

aver = functools.reduce(operator.add, data) / info_data[0]

i = 0
result = []
while i < info_data[1]:
    max_v = data[0]
    min_v = data[0]
    max_j = 0
    min_j = 0
    for j in enumerate(data):
        if max_v < j[1]:
            max_v = j[1]
            max_j = j[0]
        if min_v > j[1]:
            min_v = j[1]
            min_j = j[0]

    if data[min_j] < aver:
        data[min_j] += 1
        data[max_j] -= 1
        result.append((max_j, min_j))
    else:
        break
    i += 1

max_v = data[0]
min_v = data[0]
max_j = 0
min_j = 0
for j in enumerate(data):
    if max_v < j[1]:
        max_v = j[1]
        max_j = j[0]
    if min_v > j[1]:
        min_v = j[1]
        min_j = j[0]


print("{} {}".format(max_v - min_v, i))
for i in result:
    print("{} {}".format(i[0]+1, i[1]+1))