You came to a local shop and want to buy some chocolate bars. There are $n$ bars in the shop, $i$-th of them costs $a_i$ coins (and you want to buy all of them).

You have $m$ different coupons that allow you to buy chocolate bars. $i$-th coupon allows you to buy $q_i$ chocolate bars while you have to pay only for the $q_i - 1$ most expensive ones (so, the cheapest bar of those $q_i$ bars is for free).

You can use only one coupon; if you use coupon $i$, you have to choose $q_i$ bars and buy them using the coupon, and buy all the remaining $n - q_i$ bars without any discounts.

To decide which coupon to choose, you want to know what will be the minimum total amount of money you have to pay if you use one of the coupons optimally.


-----Input-----

The first line contains one integer $n$ ($2 \le n \le 3 \cdot 10^5$) — the number of chocolate bars in the shop.

The second line contains $n$ integers $a_1$, $a_2$, ..., $a_n$ ($1 \le a_i \le 10^9$), where $a_i$ is the cost of $i$-th chocolate bar.

The third line contains one integer $m$ ($1 \le m \le n - 1$) — the number of coupons you have.

The fourth line contains $m$ integers $q_1$, $q_2$, ..., $q_m$ ($2 \le q_i \le n$), where $q_i$ is the number of chocolate bars you have to buy using $i$-th coupon so that the least expensive of them will be for free. All values of $q_i$ are pairwise distinct.


-----Output-----

Print $m$ integers, $i$-th of them should be the minimum amount of money you have to pay if you buy $q_i$ bars with $i$-th coupon, and all the remaining bars one by one for their full price.


-----Example-----
Input
7
7 1 3 1 4 10 8
2
3 4

Output
27
30



-----Note-----

Consider the first example.

If we use the first coupon, we may choose chocolate bars having indices $1$, $6$ and $7$, and we pay $18$ coins for them and $9$ coins for all other bars.

If we use the second coupon, we may choose chocolate bars having indices $1$, $5$, $6$ and $7$, and we pay $25$ coins for them and $5$ coins for all other bars.

Difficulty: interview

Starter code:

Solutions:
n = int(input())

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

m = int(input())

q = list(map(int, input().split()))

a.sort()

s = sum(a)

for qi in q:
	print(s - a[-qi])


n = int(input())
a = list(map(int, input().split()))
m = int(input())
q = list(map(int, input().split()))
a.sort()
s = sum(a)
for i in q:
    print(s - a[-i])


n = int(input())
l = [*map(int, input().split())]
m = int(input())
l.sort()
s = sum(l)
for c in map(int, input().split()):
    print(s - l[-c])

a = int(input())
A = list(map(int, input().split()))
b = int(input())
B = list(map(int, input().split()))
num = sum(A)
A.sort(reverse=True)
for elem in B:
    print(num - A[elem - 1])


n = int(input())
A = list(map(int, input().split()))
m = int(input())
Q = list(map(int, input().split()))
A.sort(reverse=True)
z = sum(A)
for i in Q:
    print(z - A[i - 1])


mi = lambda: [int(i) for i in input().split()]

n = int(input())
a = sorted(mi())
m = int(input())
q = mi()

s = sum(a)

for i in q:
    print(s - a[-i])


n = int(input())
u = list(map(int, input().split()))
k = int(input())
a = list(map(int, input().split()))
u.sort(reverse = 1)
s = sum(u)
for i in range(k):
    print(s - u[a[i] - 1])


from collections import defaultdict as dd
import math
def nn():
	return int(input())

def li():
	return list(input())

def mi():
	return list(map(int, input().split()))

def lm():
	return list(map(int, input().split()))


n=nn()

l=lm()

q=nn()

qs=lm()

l.sort()

s=sum(l)

for c in qs:
	print(s-l[-c])
	








n=int(input())
choco=[int(x) for x in input().split()]
m=int(input())
kup=[int(x) for x in input().split()]
choco.sort(reverse=True)
summa=sum(choco)
for item in kup:
    print(summa-choco[item-1])



n = int(input())
l = list(map(int, input().split()))
k = int(input())
m = list(map(int, input().split()))
l.sort(reverse=1)
sm = sum(l)
for i in m:
    print(sm - l[i - 1])


n = int(input())
a = sorted(list(map(int, input().split())), reverse=True)
m = int(input())
s = list(map(int, input().split()))
sum1 = sum(a)
for q in range(m):
    print(sum1-a[s[q]-1])


n = int(input())
a = list(map(int, input().split()))
m = int(input())
q = list(map(int, input().split()))
a.sort(reverse=True)
s = sum(a)
for i in range(m):
    print(s - a[q[i] - 1])




n = int(input())
A = sorted([int(a) for a in input().split()])[::-1]
m = int(input())
Q = [int(a) for a in input().split()]
s = sum(A)
for q in Q:
    print(s-A[q-1])


import sys
from math import *

def minp():
	return sys.stdin.readline().strip()

def mint():
	return int(minp())

def mints():
	return map(int, minp().split())

n = mint()
a = list(mints())
a.sort()
s = sum(a)
m = mint()
for i in mints():
	print(s - a[-i])

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

m = int(input())
cp = list(map(int, input().split()))

cl = sorted(cl)

sm = 0
sl = [0]
for i in range(n):
    sm+=cl[i]
    sl.append(sm)

res = []

sm = sum(cl)

for i in range(m):
    t = sm - cl[n-cp[i]]
    res.append(t)

for x in res:
    print(x)

n = int(input())
a = sorted(list(map(int,input().split())))
m = int(input())
q = list(map(int,input().split()))
s = sum(a)
for i in range(m):
    print(s - a[n - q[i]])

# from sys import stdin
# import math
# import numpy as np
# from itertools import permutations, combinations, combinations_with_replacement

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

a.sort()
suma = sum(a)

for i in range(m):
    print(suma - a[-q[i]])

n = int(input())
a=list(map(int, input().split()))
m = int(input())
q = list(map(int, input().split()))
a = sorted(a, key=lambda x:-x)
s = sum(a)
for i in range(m):
    ans = s - a[q[i]-1]
    print(s - a[q[i]-1])

n = int(input())
a = sorted(map(int, input().split()), reverse=True)
m = int(input())
q = [*map(int, input().split())]

t = sum(a)

for i in q:
    print(t - a[i - 1])

n = int(input())
a = list(map(int, input().split()))
s = sum(a)
a.sort(reverse=True)
m = int(input())
q = list(map(int, input().split()))
for i in q:
    print(s - a[i - 1])

n = int(input())
a = sorted(list(map(int, input().split())))
m = int(input())
q = list(map(int, input().split()))

x = sum(a)

for i in range(m):
    print(x - a[n - q[i]])


input()
A=sorted(int(x)for x in input().split())
s=sum(A)
input()
for q in map(int,input().split()):print(s-A[-q])


n = int(input())
a = list(map(int, input().split()))
m = int(input())
q = list(map(int, input().split()))
a.sort(reverse=True)
pref = [0]
for i in range(n):
    pref.append(pref[i] + a[i])
for elem in q:
    ans = 0
    ans += pref[elem - 1]
    ans += pref[-1] - pref[elem]
    print(ans)

from sys import stdin, stdout
n,a,m,b = int(stdin.readline()), sorted(list(map(int, stdin.readline().split())), reverse = True), int(stdin.readline()), list(map(int, stdin.readline().split()))
s = sum(a)
for i in range(m):
    print(s - a[b[i] - 1])