Fennec is fighting with N monsters.
The health of the i-th monster is H_i.
Fennec can do the following two actions:
 - Attack: Fennec chooses one monster. That monster's health will decrease by 1.
 - Special Move: Fennec chooses one monster. That monster's health will become 0.
There is no way other than Attack and Special Move to decrease the monsters' health.
Fennec wins when all the monsters' healths become 0 or below.
Find the minimum number of times Fennec needs to do Attack (not counting Special Move) before winning when she can use Special Move at most K times.

-----Constraints-----
 - 1 \leq N \leq 2 \times 10^5
 - 0 \leq K \leq 2 \times 10^5
 - 1 \leq H_i \leq 10^9
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
N K
H_1 ... H_N

-----Output-----
Print the minimum number of times Fennec needs to do Attack (not counting Special Move) before winning.

-----Sample Input-----
3 1
4 1 5

-----Sample Output-----
5

By using Special Move on the third monster, and doing Attack four times on the first monster and once on the second monster, Fennec can win with five Attacks.
[{"code": "n, k = map(int, input().split())\nH = list(map(int, input().split()))\nH.sort(reverse=True)\nprint(sum(H[k:]))", "passed": true, "time": 0.29, "memory": 14180.0, "status": "done"}, {"code": "N, K = list(map(int, input().split()))\nH = list(map(int, input().split()))\nif len(H) <= K:\n  print((0))\nelse:\n  print((sum(sorted(H)[:len(H)-K])))\n", "passed": true, "time": 0.22, "memory": 14236.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = [int(s) for s in input().split()]\n\nans = 0\nh.sort(reverse= True)\nif k >= n:\n    ans = 0\nelse:\n    ans = sum(h[k:n])\nprint(ans)", "passed": true, "time": 1.02, "memory": 14216.0, "status": "done"}, {"code": "import re\nimport sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\nimport functools\ndef v(): return input()\ndef k(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef X(): return list(input())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 6)\nmod = 10**9+7\ncnt = 0\nans = 0\ninf = float(\"inf\")\nal = \"abcdefghijklmnopqrstuvwxyz\"\nAL = al.upper()\n\nn, k=I()\nh = l()\nh.sort(reverse=True)\n\nprint(sum(h[k:]))", "passed": true, "time": 0.15, "memory": 14108.0, "status": "done"}, {"code": "n,k=list(map(int,input().split()))\nl=list(map(int,input().split()))\nl.sort(reverse=True)\nif k>=n:\n    print((0))\nelse:\n    for i in range(k):\n        l[i]=0\n    print((sum(l)))\n", "passed": true, "time": 0.15, "memory": 14380.0, "status": "done"}, {"code": "N, K=map(int, input().split())\nH=list(map(int, input().split()))\n\nH.sort(reverse=True)\n\nif K<=len(H):\n  print(sum(H[K:len(H)+1]))\nelse:\n  print(0)", "passed": true, "time": 0.27, "memory": 14296.0, "status": "done"}, {"code": "N, K = list(map(int, input().split()))\nH = list(map(int, input().split()))\n\na = 0\n\nif K > N:\n  a = K - N\n\nfor _ in range(a):\n  H.append(0)\n\nH.sort(reverse = True)\nsum = 0\n\nfor i in range(K):\n  H[i] = 0\n  \nfor i in range(N):\n  sum += H[i]\n  \nprint(sum)\n", "passed": true, "time": 0.15, "memory": 14256.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nH=list(map(int,input().split()))\nH.sort(reverse=True)\nprint(sum(H[K:]))", "passed": true, "time": 0.19, "memory": 14216.0, "status": "done"}, {"code": "n, k = list(map(int, input().split()))\nh = list(map(int, input().split()))\n\n# \u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u6570\u3088\u308a\u4f7f\u3048\u308b\u5fc5\u6bba\u6280\u306e\u6570\u304c\u591a\u3051\u308c\u3070\u304a\u308f\u308a\nif n <= k:\n    print((0))\n    return\n\nnum = 0\n# \u964d\u9806\u306b\u30bd\u30fc\u30c8\nh.sort(reverse=True)\n# \u5927\u304d\u3044\u6570\u9806\u306b\u5fc5\u6bba\u6280\u3092\u4f7f\u3046\n# \u6b8b\u3063\u305f\u3084\u3064\u3092\u6570\u3048\u308b\nfor i in h[k:]:\n    num += i\n\nprint(num)\n", "passed": true, "time": 0.29, "memory": 14320.0, "status": "done"}, {"code": "N,K = list(map(int,input().split()))\nH = sorted(list(map(int,input().split())),reverse=True)[K:]\n\nprint((sum(H)))\n", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.29, "memory": 14216.0, "status": "done"}, {"code": "health, attacks = map(int, input().split())\nnum_list = [num for num in map(int, input().split())]\nnum_list.sort(reverse=True)\n\nprint(sum(num_list[attacks:]))", "passed": true, "time": 0.15, "memory": 14208.0, "status": "done"}, {"code": "n, k = map(int, input().split())\n\nlst = [ int(i) for i in input().split() ]\nif len(lst) <= k:\n  print(0)\n  return\nlst = sorted(lst)\nfor i in range(k):\n  lst.pop()\nprint(sum(lst))", "passed": true, "time": 0.15, "memory": 14080.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nH=list(map(int,input().split()))\nH.sort()\nm=0\nif K<N:\n    for i in range(N-K):\n        m+=H[i]\nprint(m)", "passed": true, "time": 0.28, "memory": 14116.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort(reverse = True)\nprint(sum(h[k:]))", "passed": true, "time": 0.17, "memory": 14060.0, "status": "done"}, {"code": "N,K = map(int,input().split())\nH = sorted([int(i) for i in input().split()])\nans = 0\nfor i in range(N-K):\n    ans += H[i]\nprint(ans)", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "n,k=map(int,input().split())\nh = sorted(map(int,input().split()))\nprint(sum(h[:-k]) if k!=0 else sum(h))", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "n,k =map(int,input().split())\na = sorted(list(map(int,input().split())))[::-1]\nprint(sum(a[k:]))", "passed": true, "time": 0.23, "memory": 14160.0, "status": "done"}, {"code": "N, K = list(map(int, input().split()))\nH = list(map(int, input().split()))\n\nH.sort(reverse=True)\nprint((sum(H[K:])))\n", "passed": true, "time": 0.15, "memory": 14268.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.22, "memory": 14244.0, "status": "done"}, {"code": "num, deathblow = map(int, input().split())\nenemy_table = list(map(int, input().split()))\nlist.sort(enemy_table, reverse=True)\nsum = 0\nif num <= deathblow:\n    print(0)\nelse:\n    for i in range(deathblow):\n        enemy_table[i] = 0\n    for j in range(num):\n        sum += enemy_table[j]\n    print(sum)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n, k = list(map(int, input().split()))\nh = list(map(int, input().split()))\nh.sort(reverse=True)\nh = h[k:]\nprint((sum(h)))\n", "passed": true, "time": 0.15, "memory": 14200.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "n, k = list(map(int, input().split()))\nenemy = list(map(int, input().split()))\nenemy = sorted(enemy, reverse=True)\nenemy = enemy[k:]\nprint(sum(enemy))", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "n,k=map(int,input().split());print(sum(sorted(map(int,input().split()))[::-1][k:]))", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(sorted(map(int, input().split())))\nx = 0\nif n > k:\n    for i in range(n - k):\n        x += h[i]\n\nprint(x)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nans = 0\n\nif(n <= k):\n  print(0)\nelse:\n  h.sort()\n  a = []\n  a = h[:n-k]\n  print(sum(a))", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nH=sorted(map(int,input().split()))\nif K==0:\n    print(sum(H))\nelif N<K:\n    K=N\n    del H[-K:]\n    print(sum(H))\nelse:\n    del H[-K:]\n    print(sum(H))", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "n,k = map(int,input().split())\n\nh = list(map(int,input().split()))\n\nh.sort(reverse = True)\n\nans = 0\nfor i in range(k,n):\n    ans += h[i]\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "N,K = map(int, input().split())\nH = list(map(int, input().split()))\nH.sort(reverse=True)\nans = 0\nfor i in range(K, N):\n    ans += H[i]\nprint(ans)", "passed": true, "time": 0.15, "memory": 14040.0, "status": "done"}, {"code": "n,k=map(int,input().split())\nh=list(map(int,input().split()))\nh.sort()\nans=0\nfor i in range(n-k):\n  ans+=h[i]\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.23, "memory": 14152.0, "status": "done"}, {"code": "N,K = map(int,input().split())\nH = list(map(int,input().split()))\nH.sort(reverse=True)\nH = H[K:]\nprint(sum(H))", "passed": true, "time": 0.82, "memory": 14152.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort(reverse = True)\nif n < k:\n    k = n\nans = 0\nfor i in range(k):\n    h[i] = 0\nfor i in range(n):\n    ans += h[i]\nprint(ans)", "passed": true, "time": 0.22, "memory": 14352.0, "status": "done"}, {"code": "n,k = list(map(int,input().split()))\nenemy = list(map(int,input().split()))\n\nenemy.sort(reverse=True)\n\nif k >= n :\n  print((0))\n\nelse:\n  \n\n  for x in range(k):\n    enemy[x] = 0\n  \n  print((sum(enemy)))\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "def main():\n\tn, k = list(map(int, input().split()))\n\th = [int(v) for v in input().split()]\n\tif k >= len(h):\n\t\treturn 0\n\tmonsters = sorted(h)\n\tmonsters.reverse()\n\treturn sum(monsters[k:])\n\ndef __starting_point():\n    print((main()))\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nn = list(map(int,input().split()))\nm = sorted(n)[::-1]\nif a <= b:\n  print(\"0\")\nelse:\n  print(sum(m[b::]))", "passed": true, "time": 0.81, "memory": 14300.0, "status": "done"}, {"code": "N, K = list(map(int, input().split()))\nhp_list = list(map(int, input().split()))\n\nif N <= K:\n    print(0)\nelse:\n    hp_list.sort()\n    del hp_list[N - K:N]\n    print(sum(hp_list))", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "n, k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort()\nif n <= k:\n  print(\"0\")\nelse:\n  if k == 0:\n    ans = sum(h)\n  else:\n    x = n - k\n    ans = sum(h[:x])\n\n  print(ans)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nH = list(map(int, input().split()))\nH.sort(reverse=True)\nprint(max(0, sum(H[K:])))", "passed": true, "time": 0.27, "memory": 14272.0, "status": "done"}, {"code": "\ndef main():\n    n, k = map(int, input().split(\" \"))\n    h = list(map(int, input().split(\" \")))\n    h.sort(reverse = True)\n    print(sum(h[k:]))\n    \n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.34, "memory": 14304.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort(reverse=True)\nans = 0\nfor i in range(k,n):\n    ans += h[i]\nprint(ans)", "passed": true, "time": 0.15, "memory": 14232.0, "status": "done"}, {"code": "import sys\nimport heapq\n\nn, k = list(map(int, input().split()))\nh = []\nheapq.heapify(h)\nfor x in map(int, input().split()):\n  heapq.heappush(h, x)\n\nif n <= k:\n  print((0))\n  return\n\nans = 0\nfor x in range(n - k):\n  ans += heapq.heappop(h)\n\nprint(ans)\n", "passed": true, "time": 0.28, "memory": 14204.0, "status": "done"}, {"code": "H, K = [int(n) for n in input().split()]\nH = [int(n) for n in input().split()]\n\nprint(sum(sorted(H, reverse=True)[K:]))", "passed": true, "time": 0.26, "memory": 14088.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(map(int,input().split()))\nans = 0\n\nh = sorted(h,reverse=True)\n\nfor i in range(k,n):\n    ans += h[i]\n\nprint(ans)", "passed": true, "time": 0.18, "memory": 14256.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.35, "memory": 14056.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = sorted(list(map(int, input().split())), reverse=True)\n\nprint(sum(h[k:]))", "passed": true, "time": 0.75, "memory": 14028.0, "status": "done"}, {"code": "import sys\nn,k=list(map(int,input().split()))\nh=list(map(int,input().split()))\n\nlist.sort(h,reverse=True)\n\nif k>=n:\n    print('0')\n    return\n\nc=0\nfor i in range(k,n):\n    c+=h[i]\n\nprint(c)\n", "passed": true, "time": 0.27, "memory": 14384.0, "status": "done"}, {"code": "# C - Fennec vs Monster\n\nn,k = list(map(int,input().split()))\nh = list(map(int,input().split()))\nh.sort(reverse=True)\nif k >= n:\n    k = n\nh2 = h[k:]\n\nprint((sum(h2)))\n", "passed": true, "time": 0.15, "memory": 14196.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = sorted(list(map(int, input().split())), reverse=True)\n\nprint(sum(h[k:]))", "passed": true, "time": 0.23, "memory": 14216.0, "status": "done"}, {"code": "[N, K] = [int(i) for i in input().split()]\nH = [int(i) for i in input().split()]\n\nif N <= K:\n    print(0)\nelse:\n    h = list(sorted(H))\n    t = sum(h[0:N-K])\n    print(t)", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = sorted(list(map(int,input().split())),reverse=True)\nprint(sum(h[k:]))", "passed": true, "time": 0.23, "memory": 14048.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\nfrom itertools import chain\n\n\ndef solve(N: int, K: int, H: \"List[int]\"):\n    H = sorted(H, reverse=True)\n    return sum(H[K:])\n\n\ndef main():\n    tokens = chain(*(line.split() for line in sys.stdin))\n    N = int(next(tokens))  # type: int\n    K = int(next(tokens))  # type: int\n    H = [int(next(tokens)) for _ in range(N)]  # type: \"List[int]\"\n    answer = solve(N, K, H)\n    print(answer)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N,K=list(map(int, input().split()))\nH=sorted(list(map(int, input().split())), reverse=True)\nif N<=K:\n\tprint((0))\nelse:\n\tprint((sum(H[K:])))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "h,k = list(map(int,input().split()))\nlst = list(map(int,input().split()))\nlst.sort()\nif len(lst) >= k + 1:\n  print((sum(lst[:len(lst)-k])))\nelse:\n  print((0))\n\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(map(int, input().split()))\nh = sorted(h, reverse=True)\n\nif k >= n:\n    print(0)\nelse:\n    print(sum(h[k:]))", "passed": true, "time": 0.14, "memory": 13976.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nprint(sum(sorted(h)[:n-k]) if n-k>0 else 0)", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort(reverse=True)\nif k>=n:\n    print(0)\nelse:\n    ans = 0\n    for i in range(k,n):\n        ans += h[i]\n    print(ans)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "N,K = map(int, input().split())\nH = sorted(list(map(int, input().split())), reverse = True)\n\nprint(sum(H[K:]))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "N, K = map(int,input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nH=input()\n\ndef ans153(N:int, K:int, H:str):\n    if K==0:\n        H_list=sorted(list(map(int,H.split())))\n        return sum(H_list)\n    elif len(list(map(int,H.split())))>K:\n        H_list=sorted(list(map(int,H.split())))\n        H_list=H_list[:-K]\n        return sum(H_list)\n    else:\n        return 0\n\nprint(ans153(N,K,H))", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "n,k = list(map(int,input().split()))\nH = sorted(list(map(int,input().split())))\nif n <= k:\n  print((0))\n  return\nif k == 0:\n  print((sum(H)))\n  return\nprint((sum(H[:-k])))\n", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nlst = list(map(int, input().split()))\n\nif N <= K:\n    print(0)\n\nelse:\n    lst.sort(reverse = True)\n    lst = lst[K:]\n    print(sum(lst))", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nh = list(map(int,input().split()))\n\nh.sort(reverse=True)\n\nans = sum(h[k:])\nprint(ans)", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = sorted(list(map(int,input().split())))\nif k >= len(h):\n    print(0)\n    return\nprint(sum(h[0:n-k]))", "passed": true, "time": 0.15, "memory": 14104.0, "status": "done"}, {"code": "N, K = list(map(int, input().split()))\nH = list(map(int, input().split()))\n\n\nif(len(H) > K):\n    print((sum(sorted(H)[0:len(H)-K])))\nelse:\n    print((0))\n", "passed": true, "time": 0.15, "memory": 14124.0, "status": "done"}, {"code": "N,K = map(int,input().split())\nH = [int(x) for x in input().split()]\nH_sort = sorted(H,reverse=True)\nprint(sum(H_sort[K:]))", "passed": true, "time": 0.18, "memory": 14016.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.24, "memory": 14060.0, "status": "done"}, {"code": "a = list(map(int,input().split()))\nb = list(map(int,input().split()))\n\nif len(b) <= a[1]:\n    print(\"0\")\nelif a[1]==0:\n    print(sum(b))\nelse:\n    b.sort(reverse=True)\n    print(sum(b[a[1]:]))", "passed": true, "time": 0.44, "memory": 14108.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nHP=list(map(int,input().split()))\n\nHP.sort()\n\nif K>0:\n    HP=HP[:-K]\n\nprint(sum(HP))", "passed": true, "time": 0.15, "memory": 14172.0, "status": "done"}, {"code": "n,k = [int(x) for x in input().split()]\nh = [int(x) for x in input().split()]\nh.sort()\nans = 0\nfor i in range(n-k):\n  ans += h[i]\nprint(ans)", "passed": true, "time": 0.2, "memory": 14100.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(map(int, input().split()))\nh.sort()\n\nif k >= n:\n\tprint(0)\nelse:\n\t# for i in range(k):\n\t# \th.remove(max(h))\n\th = h[:n - k]\n\tprint(sum(h))", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "n, k = map(int,input().split())\nh = list(map(int,input().split()))\nh.sort()\nh.reverse()\nif (k > n):\n    k = n\nfor i in range(k):\n    h[i] = 0\nprint(sum(h))", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nH = list(map(int, input().split()))\n\nH.sort()\nm = min(N, K)\nH = H[:N-m]\nans = 0\nfor i in range(len(H)):\n  ans += H[i]\nprint(ans)", "passed": true, "time": 0.22, "memory": 14204.0, "status": "done"}, {"code": "n, k = map(int, input().split())\n\nh = list(map(int, input().split()))\n\nh.sort(reverse = True)\n\nprint(sum(h[k:]))", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "#!/usr/bin/env python3\ndef main():\n    N, K = list(map(int, input().split()))\n    H = sorted([int(x) for x in input().split()])\n\n    if K == 0:\n        print((sum(H)))\n    elif N > K:\n        print((sum(H[:-K])))\n    else:\n        print((0))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nH = list(map(int, input().split()))\n \n# N<=K\u306e\u5834\u5408\u3001\u5168\u3066\u306e\u30e2\u30f3\u30b9\u30bf\u30fc\u3092\u5fc5\u6bba\u6280\u3067\u5012\u3057\u3066\u7d42\u4e86\n# N>K\u306e\u5834\u5408\u3001N\u4f53\u306e\u30e2\u30f3\u30b9\u30bf\u30fc\u306e\u3046\u3061\u3001\u4f53\u529b\u304c\u9ad8\u3044\u9806\u306b\u3001K\u4f53\u3092\u5fc5\u6bba\u6280\u3067\u5012\u3059\n# \u6b8b\u3063\u305f\u30e2\u30f3\u30b9\u30bf\u30fc\u306f\u3001\u653b\u6483\u306b\u3088\u3063\u3066\u5012\u3059\n# \u653b\u6483\u306e\u56de\u6570\u3092\u6c42\u3081\u308b\uff08\u5fc5\u6bba\u6280\u306f\u6570\u3048\u306a\u3044\uff09\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\n\n# \u8a08\u7b97\u91cf\u306fO(NlogN)\u3067\u9593\u306b\u5408\u3046\nH = sorted(H, reverse=True)\nans = 0\nif N > K: ans = sum(H[K:])\n  \nprint(ans)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nH = list(map(int, input().split()))\n\nH = sorted(H)\nhp = 0\nfor i in range(N-K):\n  hp += H[i]\nprint(hp)", "passed": true, "time": 0.19, "memory": 14272.0, "status": "done"}, {"code": "def N():\n    return int(input())\ndef L():\n    return list(map(int,input().split()))\ndef NL(n):\n    return [list(map(int,input().split())) for i in range(n)]\nmod = pow(10,9)+7\n\n#import numpy as np\nimport sys\nimport math\nimport collections\n\nn,k = L()\nh = L()\nh.sort()\nprint(sum(h[:max(n-k,0)]))", "passed": true, "time": 0.15, "memory": 14108.0, "status": "done"}, {"code": "N, K = map(int, input().split())\nH = list(map(int, input().split()))\n\nif N <= K:\n    print(0)\nelif K == 0:\n    print(sum(H))\nelse:\n    total = 0\n    for i in H:\n        total += i\n    max_hp = sum(sorted(H, reverse=True)[:K])\n    print(total - max_hp)", "passed": true, "time": 0.16, "memory": 14272.0, "status": "done"}, {"code": "N,K = list(map(int,input().split()))\nHlist = list(map(int,input().split()))\n\nHlist = sorted(Hlist,reverse = True)\n#print (Hlist)\n\nif len(Hlist)>=K and K!=0:\n  del Hlist[0:K]\nelif len(Hlist)<K:\n  del Hlist[0:len(Hlist)]\n\nif len(Hlist)>0:\n  print((sum(Hlist)))\nelse:\n  print((len(Hlist)))\n", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "N,K = map(int,input().split())\nH = sorted(list(map(int,input().split())))\n\nif not N <= K:\n    print(sum(H[0:N-K]))\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(map(int, input().split()))\nh.sort(reverse=True)\nans = 0\nfor i in range(k, n): ans += h[i]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "N,K = list(map(int, input().split(\" \")))\nH = sorted(list(map(int, input().split(\" \"))), reverse=True)\nZ = 0\nR = 0\nfor n,e in enumerate(H):\n  if (n == K):\n    Z = n\n    break\n  elif (K >= len(H)):\n    Z = len(H)\n    break\nfor i in H[Z:]:\n  R += i\nprint(R)\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nH=list(map(int,input().split()))\nif N<=K:\n    print(0)\nelse:\n    H.sort(reverse=True)\n    for i in range(K):\n        H[i]=0\n    print(sum(H))", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "n,k=list(map(int,input().split()))\nh=list(map(int,input().split()))\nh.sort(reverse=True)\n\nprint((sum(h[k:])))\n", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "n,k = map(int, input().split())\nh = list(map(int, input().split()))\nif k >= len(h):\n  print(0)\nelse:\n  h.sort()\n  print(sum(h[:n-k]))", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "n, k = map(int, input().split())\nh = list(map(int, input().split()))\n\nh.sort(reverse=True)\nprint(sum(h[min(n,k):]))", "passed": true, "time": 0.16, "memory": 14196.0, "status": "done"}, {"code": "N, K = map(int, input().split(' '))\nH_ls = list(map(int, input().split(' ')))\nH_ls.sort(reverse=True)\nprint(sum(H_ls[K:]))", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n, k = list(map(int, input().split()))\nh = sorted(list(map(int, input().split())))\n\nif k==0: print((sum(h)))\nelse: print((sum(h[:-k])))\n", "passed": true, "time": 0.23, "memory": 14248.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Tue Sep  8 01:07:55 2020\n\n@author: liang\n\"\"\"\n\nN, K = map(int, input().split())\nH = [int(x) for x in input().split()]\nH.sort()\n\nif N > K :\n    ans = sum(H[:N-K])\nelse:\n    ans = 0\nprint(ans)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nlis = list(map(int,input().split()))\nlis.sort(reverse=True)\nprint(sum(lis[b:]))", "passed": true, "time": 0.14, "memory": 14148.0, "status": "done"}, {"code": "N,K = map(int,input().split())\nH = list(map(int,input().split()))\nif K==0:\n    print(sum(H))\nelse:\n    print(sum(sorted(H)[:-K]))", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "N,K=map(int,input().split())\nHlist=list(map(int,input().split()))\nif N-K>0:\n    print(sum(sorted(Hlist)[:N-K]))\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "N,K=list(map(int,input().split()))\nH=sorted(list(map(int,input().split())))\nif len(H) < K:\n    print((0))\nelse:\n    print((sum(H[:N-K])))\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "n,k=map(int,input().split())\nh=list(map(int,input().split()))\nh.sort()\ns=0\nfor i in range(n-k):\n    s += h[i]\nprint(s)", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "n,k = map(int,input().split())\nhealth = list(map(int,input().split()))\ns_health = sorted(health)\nif n <= k:\n    print(0)\n    return\n\nprint(sum(s_health[:n-k]))", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "n, k = [int(i) for i in input().split()]\na = sorted([int(i) for i in input().split()])\nif k <= 0:\n  print(sum(a))\nelse:\n  print(sum(a[:-k]))", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}]