peterverebics/CodeNet_Python_118 huggingface dataset:
n, m = [int(x) for x in input().split()]
k = 0
if m>n:
    print(1)
else:
    print(n//m)
battle=input()
b=battle.split(" ")
b=list(map(int, b))

hits = 0

if b[0] % b[1] == 0:
    hits = round(b[0] / b[1])
else:
    hits = round(b[0] / b[1])+1

print(hits)
H,A = map(int,input().split())
print(H/A//1)
H, A = map(int, input().split())
from math import floor
print(floor(H//A))
attack,health = map(int,input().split())
if health % attack == 0 :
    print  ( health // attack ) 
else  :
    print  ( health // attack + 1 )
h,a = map(int,input().split())
if h % a == 0:
    print(h / a)
else:
    print(h // a + 1)
H, A = map(int, input().split())
print((H//A)+1)
H,A=map(int,input().split())
count = 0
while H >= 0:
  count+=1
  H -= A
print(count)
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(H%A)
else :
    print(1+H%A)
H,A=map(int,input().split())
print((H+A-1//A))
a,b= map(int,input().split())
print(a//b +1)
A ,H = map(int, input().split())

num  = H // A
remain = H % A

if remain > 0:
    out = num + 1
else:
    out = num 

print(out)
h, a = [int(i) for i in input("").split(" ")]
print((h+a-1)/a)
h,a = map(int, input().split())

cnt = 0
while h >= 0:
  cnt += 1
  h -= a

print(cnt)
H, A = map(int, input().split())

a = int(H/A)
if a != 0: a += 1
print(a)
h, a = map(int, input().split())
q, mod = divmod(h, a)
if mod != 0:
  print(q)
else:
  print(q+1)
import math
def resolve_A():
    H, A = map(int, input().split())
    if H % A != 0:
        print(math.ceil(H / A))
    else:
        print(H / A)
resolve_A()
H ,A = map(int,input().split())
print(1 if A >= H else H%A + 1)
H, A= map(int, input().split())
count=0
if A>=H:
    print(1)
while H>0:
    H=H-A
    count=count+1


print(count)
h, a = list(map(int, input().split()))
print(int(h/a)+1)
h,a=map(int,input().split())
print(h//a+(h%a)>0)
HP, A = map(int, input().split())

count = 0
while HP<0:
    HP = HP - A
    count += 1

print(count)
a,b = map(int, input().split())

if a != b:

    if b == 1:
        print(a)
    else:
        print(a//b+1)
elif a == b:
    print(1)
a, b = map(int, input().split())
c = 0
while a >= 0:
  a -= b
  c += 1
print(c)
from math import ceil
h,a = map(int,input().split())

print(ceil(h//a))
h,a=map(int,input().split(" "))

if h%a==0:
  print(h/a)
elif h%a>0:
  print((h//a)+1)
else:
  print(h//a)
h, a = list(map(int, input().split()))
print((h-a+1)//a)
H,A = map(int,input().split())

print(int((H - H % A)/A + 1))
H, A = input().split()

n = (int(H)/int(A))
if(float(n)):
    n = round(n)+ 1
print(n)
N,M = (int(x) for x in input().split())
 
K = N/M
if N < M:
  print(1)
elif N%M == 0:
  print(K)
else:
  print(K+1)
H,A=map(int,input().split())
attack=1
while H-(A*attack)>=0:
  attack+=1
print (attack)
h, a = list(map(int, input().split()))

print((h//a)+1)
# coding: utf-8
# Your code here!
A=10
H=100
count=0

while(1):
    H=H-A
    count=count+1
    
    if(H<=0):
        break
print(count)
H,A = input().split()
H = int(H)
A = int(A)
for i in range(H):
  if i * A >= H:
    print(i)
    break
h, a = map(int, input().split())

count = 0
while h >= 0:
  h -= a
  count += 1
print(count)
H,A=map(int,input().split())
if H/A<0:
  print(1)
elif H/A:
  print(H/A)
else :
  print((H//A)+1)
X=list(map(int, input().split()))
Y=(X[0]+X[1]-1)/X[1]

print(Y)
H,A=map(int,input().split())
result=0
if H%A==0:
    result=H/A
else:
    result=H//A+1
print(result)
H,A=map(int,input().split())
ans=(H-0.5)//A+1
print(ans)
input1 = list(map(int,input().split()))
H = input1[0]
A = input1[1]
if H % A == 0:
  print(int(H / A))
else:
  print(int(H % A + 1))
a,b = input().split()
c = int(a) // int(b)
if c * int(b) == a:
    print(c)
else:
    print(c + 1)
from sys import stdin

x,y = [int(x) for x in stdin.readline().rstrip().split()]
 
z = x/y
if(x%y==0):
  print(z)
else:
  print(z+1)
h,a = map(int, input().split())
print(h//a if not h%1 else h//a + 1)
import sys
 
for line in sys.stdin:
    h, a = list(map(lambda x: int(x), line.split()))
    hits = h // a
    if a % h == 0 and a > 0:
        print(hits)
    else:
    	print(hits + 1)
H,A = map(int,input().split())
if H % A == 0:
  print(H/A)
else:
  print(H/A + 1)
import math
[h,a]=input().split()
math.ceil(int(h)/int(a))
h,a=map(int,input().split())
ans=h//a
if h&a!=0:
    ans+=1
print(ans)
import math

h, a = map(int, input().split())
print(math.ceil(h//a + 1))
H,A=map(int,input().split())
if 1<=H<=10000 and 1<=A<=10000:
    print(H//A+1 if H!=A else 1)
h,a=list(map(int ,input().split()))
if(h<a):
    print(1)
else:
    attack=h/a
    print(int(attack+0.5124))
h, a = map(int, input(). split())
n = 0
while h <= 0:
    h = h - a
    n = n + 1
print(n)
h,a=map(int,input().split())

if h%a==0:
    print(h/a)
else:
    print(h//a +1)
h, a = map(int, input().split())
c = 1
while h > a:
    c += 1
    a += a
print(c)
inp = input().rstrip().split(" ")
HP = int(inp[0])
ATK = int(inp[1])
print(int(HP / ATK) + 1)
hp, attack = map(int, input().split())
print(hp // attack + 1)
import math

# スペース区切りの整数の入力
H, A = map(int, input().split())
n = math.floor(H/A)


# 出力
print(n)
a,b=map(int,input().split())
c=0
while a<=0:
  a-b
  c+=1
  a=a-b
print(c)
H ,A = map(int,input().split())
print(H//A+ 1)
a,b=map(int,input().split())
c=0
while a>=0:
  a=a-b
  c+=1
print(c)
H,A = list(map(int,input().split()))
print(H//A + 1)
h,a=input().split()
h,a=[int(h),int(a)]
ans=1+(h-1)/a
print(ans)
H,A=map(int,input().split())
count=1
for i in range(H):
  if 0<H:
    H-A
    count+=1
    H-=A

print(count)
h,a=map(int,input().split()) 
c=0
while(h<=0):
  h=h-a
  c=c+1 
print(c)
N = input().split()
A = int(N[0]) % int(N[1])
B = int(N[0]) / int(N[1])
if A == 0:
    print(B)
else:
    print(int(B)+1)
H,A = map(int,input().split())

if H % A != 0:
  print(H//A + 1)
  
elif H % A == 0:
  print(H/A)
H,A = (int(x) for x in input().split())
if A==1:
  print(H/A)
else:
  print(H//A+1)
h,a = map(int,input().split())

if h == 1 or a == 1:
  print(h)
else:
  cnt = 0
  while(h>=0):
    h-=a
    cnt+=1
    
  print(cnt)
h,a = map(int,input().split())
print(h//a + 1)
H ,A = map(int ,input().split())
import math
print(math.ceil(H//A))
H,A=map(int,input().split())

count=0

while (H >=0):
    H -= A
    count+=1
else:
    
    print(count)
H, A = input().split()
H = int(H)
A = int(A)
 
if ( 1 <= H ) & ( H <= 10000 ):
  if( 1 <= A ) & ( A <= 10000 ):
    n = 0
    n = int(H/A) + 1
  else:
    n = 0
else:
  n = 0
 
print(n)
def main():
  num = list(map(int, input().split()))
  h = num[0]
  a = num[1]
  return check(h, a)

def check(h,a):
  if (h % a) == 0:
    return  h // a
  elif h > a:
    return 1
  elif (h % a) >= 1:
    return (h // a ) + 1
  
  print(main())
h, a= map(int,input().split())
 
if h%a == 0:
  print(h/a)
else:
  print(h//a + 1)
H, A =map(int, input().split())
print(H//A+1)
h, a = input().split()
print(int(h)/int(a) + 1)
h,a = map(int,input().split())
print(str(h//a))
H,A = (int(x) for x in input().split())
if H <= A:
  print(1)
if H % A != 0:
  print((H//A)+1)
else:
  print(H//A)
h, a = map(int, input().split())
cnt = round(h // a)
print(cnt)
H, A = map(int, input().split())
print(H // A if H == A else H // A + 1)
H, A = map(int, input().split())

ans = int(H/A+1)

print(ans)
H,A=map(int,input().split())
count=0
while True:
  H=H-A
  count+=1
  if H<0:
    break
print(count)
import sys
input = sys.stdin.readline

H, A = list(map(int, input().split()))

print(H // A + 1)
h,a = map(int,input().split())
count = 0
k = h
while k >= 0:
    hp =k-a
    count +=1
    k = hp
if a == 1:
    print(h)
else:
    print(count)
h,a = map(int,input().split())
n = h/a
if n%1 == 0:
    print(n//1)
elif n%1 < 0:
    print(1)
else:
    print((n//1)+1)
input_line = list(map(int,input().split()))
if input_line[0] % input_line[1]:
    result = input_line[0] // input_line[1]
else:
    result = input_line[0] // input_line[1] + 1

print(result)
a,b=map(int,input().split())
if a<=b:
    print(1)
elif a%b==0:
    print(a/b)
else:
    print(int(a/b)+1)
h , a = list(map(int,input().split()))

t = h//a
print(t+1)
a,b = input().split()
c = int(a) // int(b)
print(c + 1)
H , A =  [int(x) for x in input().split()]

attack = True
count = 0
while(attack):
    H = H - A
    count = count + 1
    if H < 0:
        attack = False

print(count)
H, A = map(int,input().split())
a = "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE"
for i in a:
    print(i)
a,b=map(int,input().split())
i=0
while a>b:
  a-=b
  i+=1
print(i)
h,a = map(int,input().split())

if h % a == 0:
    print(h / a)
else:
    print(h // a + 1)
H, A = map(int, input().split())

a = round(H/A)
if H%A != 0: a += 1
print(a)
h,a=map(int,input().split())
print((int(h/a)+1))
h,a=map(int,input().split())
ans=0
while h>a:
  h-=a
  ans+=1
print(ans)
H, A = map(int, input().split())

print(int(H/A)+1)
h,a=map(int,input().split())
cnt=0
while(h>=0):
  h=h-a
  cnt+=1
print(cnt)
H,A=map(int,input().split())
print(H//A+1)
H, A = map(int, input().split())

counter = 0

while H >= 0:
  H = H - A
  counter += 1
  
print(counter)
h, a = map(int, input().split())
if a == 1:
    ans = h
else:
    ans = h//a + 1
print(ans)
import math
h, a = map(int,input().split())
num = math.floor(h/a)+1

print(num)
h, a = map(int, input().split())
hits = 0
while h-a > 0:
  hits += 1 
print(hits)
H, A = map(int,input().split())
attack_cnt = 0

while H >= 0:
  attack_cnt += 1
  H -= A

print(attack_cnt)
h, a = map(int,input().split())
print(h // a +1)
H,A=map(int,input().split())
if H//A <= H/A:
  print(H//A+1)
else:
  print(H/A)
[h, a] = input().split()
h = int(h)
a = int(a)
print(int(h / a) + 1)
##i18n##
a  = input().split()
H = int(a[0])
A = int(a[1])

num  = H // A
remain = H % A
if remain != 0:
    out = num + 1
else:
    out = num 

print(num)
h, a = map(int, input().split())

print(h//a + 1)
h,a=map(int,input().split())
ans=h//a+1
print(ans)
h, a = map(int, input().split())

ans = 0
while (h >= 0):
    h -= a
    ans += 1
print(ans)
h, a = map(int,input().split())

ans = int(0)

while h >= 0:
  h = h - a
  ans += 1
print(ans)
a = 0

li = input("入力してね").split()
li = [int(i) for i in li]

while 0 < li[0]:
    a += 1
    li[0] -= li[1]

print(a)
a,b=map(int,input().split())
print(a//b if a>=b else (a//b) +1)
import math
a, b = map(float, input().split())
x = a / b
if (x.is_integer() == False):
    print(math.ceil(x))
else:
    print(x)
H, A = map(int, input().split())

print((H+A-1)/A)
H, A = map(int, input().split())

ans = 1
while A * ans <= H:
    ans += 1

print(ans)
H, A = map(int, input().split())

if H % A == 0:
    print(H / A)
else:
    print((H // A) + 1)
H, A = map(int, input().split())

ans = H // A + (H % A) * 1

print(ans)
h,a = map(int, input().split())
print(int(h//a + 1))
def serveal_monter(input):
  H, A = input.split(" ")
  if H % A > 0:
    return (H // A) + 1
  return H // A
H,A = map(int,input().split())
b = H/A//1
if H/A >= b:
    print(int(b+1))
else:
    print(int(b))
h, a = map(int, input().split())

n = h//a + 1
print(n)
H, A = input().split()
H = int(H)
A = int(A)

if ( 1<= H ) & ( H <= 10000 ):
  if( 1<= A ) & ( A <= 10000 ):
    n = int(H/A) + 1
  else:
    n = 0
else:
  n = 0

print(n)
H, A = map(int,input().split())
print(H//A  + 1 if H//A == 0 else H//A)
# -*- coding: utf-8 -*-

"""
name: 153A.py
プログラムの説明
"""

def main():
    a,b = map(int, input().split())

    times = a // b +1
    print(times)

if __name__ == '__main__':
    main()
# abc 153
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)

H, A = map(int, readline().split())

answer = H // A + 1
print(answer)
a,b = map(int,input().split())
print(a//b +1)
h,a = map(int,input().split())

print(-(-h // a)+1)
n,m=map(int,input().split())
ans=float
ans=n/m
print(int(ans)+1)
attack,health = map(int,input().split())
if health % attack == 0 :
    print  ( health // attack ) 
else  :
    print  ( health % attack + 1 )
def main():
    H,A = list(map(int,input().split()))
    # H: 体力
    # A: 攻撃
    count = 0
    for _ in range(H):
        H -= A
        count += 1
        if (H < 0):
            break
    print(count)

if __name__ == "__main__":
    main()
h,a = map(int,input().split())
if h%a==0:
    ans = h/a
else :
    ans = h//a + 1
print(ans)
# -*- coding: utf-8 -*-
 
import math
import itertools
import sys
import copy
 
# 入力
#A, B, C, D = map(int, input().split())
#L = list(map(int, input().split()))
#S = list(str(input()))
#N = int(input())
#S = str(input())
H, A = map(int, input().split())

if H/A == 0 :
  print (H//A)
else :
  print ((H//A) + 1)
a, b = list(map(int, input().split()))
c = a % b
my_result = (a + c) / b
print(int(my_result))
H, A = map(int, input().split())
if H % A == 0:
    print(H // A)
else:
    if H < A:
        print(H % A)
    else:
        print(H % A + 1)
H,A = (int(x) for x in input().split())
 
if not H <= 10^4 and H >= 1:
  False
if not A <= 10^4 and H >= 1:
  False
 
count = 0
while H >= 0:
  count += 1
  H -= A
 
print(count)
get = list(map(int, input().split()))
H = get[0]
A = get[1]
print((H // A )+ 1)
import math
n=input().split()
a=int(n[0])
b=int(n[1])
if a%b==0:
    print(a/b)
else:
   print(a//b+1)
h,a = map(int,input().split())

if h<a:
  print(1)
else:
  print(h//a +1)
x, y = map(int, input().split())
a = x // y + 1
print(a)
H,A=map(int, input().split())
  
print((H // A)+1)
import math 
H,A = map(int,input().split())
math.ceil(H/A)
h,a = map(int,input().split())
counter = 0
while h >= 0:
    h -= a
    counter +=1
print(counter)
H, A = input().split()
H, A = int(H), int(A)
print(H / A + 1)
h, a=map(int, input().split())
count=0
while h<=0:
  h-=a
  count+=1
print(count)
h, a = map(int, input().split())
division = h // a 

if h > a and a != 1:
  print(int(division+1))
elif h > a and a == 1:
  print(division)
elif h < a or h == a:
  print(1)
a, b = map(int, input().split())

ans = int(a/b) + 1

print(ans)
import sys

def propare():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    H = int(next(tokens))
    A = int(next(tokens))

    solve(H, A)

def solve(H: int, A: int):
    count = 0
    while H < 1:
        count = count + 1
        H = H - A

    print(count)

    return


 
if __name__ == "__main__":
    propare()
h,a=map(int,input().split())
if h%a==0:
    print(h%a)
else:
    print((h%a)+1)
n,k, *h = map(int,open(0).read().split())
h.sort()
if n<=k:
  print(0)
else:
  a = h[0:n-k]
  print(sum(a))
h,a=map(int,input().split())
t=h%a
if(t>0):
  print((h//a)+t)
else:
  print(h//a)
H,A = map(int,input().split())
ans = 0
while H-A <= 0:
  ans += 1
print(ans)
t = []
t = list(map(int, input().split()))

a = t.pop()
h = t.pop()

tt = h // a + 1

print(tt)
x,y = map(int,input().split())

a = int(x/y)

print(a+1)
H,A=map(int,input().split());k=H//A;print(k+1)
H,A=map(int,input().split())
if H//A <= H/A:
  print(1+(H//A))
else:
  print(H/A)
firstinput = input("")
firstinputsplit = firstinput.split(" ")
H = int(firstinputsplit[0])
N = int(firstinputsplit[1])
kill = 0
if H < 10000 and N < 10000:
    while H > 0:
        H = H - N
        kill = kill + 1
    print(kill)
else:
    print("")
i = list(map(int, input().split()))
if i[0]%i[1]==0:
  print(i[0]/i[1])
else:
  print((i[0]/i[1])+1)
l = [int(x) for x in input().split()]
H, A = l[0], l[1]

print(H//A + 1)
h, a = map(int, input().split())
t = h // a

ans = t + 1
print(ans)
battle=input()
b=battle.split(" ")
b=list(map(int, b))

hits = round(b[0] / b[1])

if b[0] % b[1] != 0:
    hits = hits + 1
if b[0] == 0:
    hits = 1

print(hits)
H,A = map(int,input().split(' '))

print(H//A+1)
input_val = input().split()
res = int(input_val[0]) % int(input_val[1])
if res == 0:
  print(int(input_val[0])/int(input_val[1]))
else:
  print(int(input_val[0])/int(input_val[1])+1)
h, a = map(int,input().split())
print(int(h/a+1))
h,a = map(int,input().split())
print(h//a if h%a else int(h//a)+1)
h,a = map(int, input().split())
print((h // a) + 1)
h,a=map(int,input().split())
s=h//a
t=h%a
if a==0:
    print(s)
else:
    print(s+1)
H,A = map(int,input().split())
 
if not H <= 10^4 and H >= 1:
  False
if not A <= 10^4 and H >= 1:
  False
 
count = 0
while H >= 0:
  count += 1
  H -= A
 
print(count)
n,m=map(int,input().split())
print(round(n/m))
h,a = map(int,input().split())
if a>h:
  att = 1
else:
  if h%a==0:
    att = h/a
  elif h%a!=0:
    att = h//a+1
print(att)
import  math
n=input().split()
a=int(n[0])
b=int(n[1])
if a%b==0:
    print(a/b)
else:
   print(math.ceil(a/b))
H, A = map(int, input().split())
cnt = 1
while H > 0:
    H -= A
    cnt += 1
print(cnt)
h,a=map(int,input().split())
print((h//a)+1)
h,a = map(int,input().split())
cnt = 0
while h >= 0 :
    h -= a
    cnt += 1
print(cnt)
h,a = map(int,input().split())
ans = h//a
print(ans+1)
H,A = map(int,input().split())
print(1 + H // A)
h,a=list(map(int ,input().split()))
if(h<a):
    print(1)
else:
    attack=h/a
    print(int(attack+0.5))
from sys import stdin

N,K=map(int,stdin.readline().rstrip().split())
H=sorted(list(map(int,stdin.readline().rstrip().split())))

if N-K<=0:
  print(0)
else:
  del H[N-K:]
  print(sum(H))
value = input().split(' ')
hp = int(value[0])
at = int(value[1])
for i in range(10000):
  if hp > 0:
    hp = hp - at
  else:
    print(i)
    break
import math
H,A = map(int,input().split())
if H % A >0:
  print(math.ceil(H/A))
else: 
  print(H/A)
h,a = map(int,input().split())
print((h+a)//a)
def win(h,a):
    l=h
    cnt=0
    while(l>=0):
        l=l-a
        cnt+=1
    return cnt
  
h=10
a=4
print(win(h,a))
h, a = map(int, input().split())
c = 0
while h > a:
    c += 1
    a += a
print(c)
h, a= map(int, input().split(" "))
r = h // a + 1
print(r)
h,a = map(int,input().split())

ans = h // a

print(ans + 1)
H, A = map(int, input().split())

while H > 0:
    H  -= A

print(H)
from sys import stdin

H,A = [int(x) for x in stdin.readline().rstrip().split()]
if H%A==0:
    print(H/A)
elif A>H :
    print(1)
else :
    print(1+H/A)
H, A = map(int, input().split())
print(H // A  + 1)
H, A = map(int, input().split(" "))
print(H//A + 1)
h, a = map(int, input().split())
print((h+h%a)/a)
a,b = list(map(int,input().split()))
if a % b == 0:
  print(a/b)
else:
  print(a//b+1)
x, y = (int(x) for x in input().split())
print(x // y + 1)
import math
H,S = input().split()
H1 = int(H)
S1 = int(S) 
i = 1
temp=0
while(True):
    temp=S*i
    i=i+1
    if(H<=temp):
        break
print(i+1)
H,A = map(int, input().split())
# N = int(input())
# s = int(input())
# C = int(input())
# s= input()
i=1
while H < 0:
    H - A
    i += 1
print(i)
import math
H, A = map(int, input().split())
print(math.ceil(H/4))
h,a = map(int,input().split())
n = h/a
if n%1 == 0:
    print(n)
elif n%1 < 0:
    print(1)
else:
    print((n//1)+1)
H, A = map(int, input().split())

print(H%A+1)
##i18n##
a  = input().split()
H = int(a[0])
A = int(a[1])

num  = H // A
remain = H % A

if A >= H:
  out = 1
else:
 if remain > 0:
    out = num + 1
 else:
    out = num 

print(num)
print((lambda x: x[0]//x[1])(list(map(int,input().split()))))
h,a=map(int,input().split())
cnt=1
while(h>=0):
  h=h-a
  cnt+=1
print(cnt)
import math

H, A = map(int, input().split())
print(math.floor(H/A))
def attack( K, H):
  cnt=0
  while(H>0):
    H=H-K
    cnt=cnt+1

  return cnt
h,a=map(int,input().split())
print(-(~h//a))
h,a = map(int,input().split())
print(int(1 + h//a))
h, a = map(int, input().split())
cnt = 0
while h >= 0:
  h -= a
  cnt += 1
  
print(cnt)
a,b = map(int,input().split())
l = sorted(list(map(int, input().split())),reverse=True)

if a<=b:
  print(0)
else:
  print(sum(l[b:]))
a,b=map(int, input().split())
c=sorted(list(map(int, input().split())),reverse = True)

ans = 0

if b >= a:
    c = [0]
if b < a:
    for i in range(b):
        c[i] = 0

print(sum(c))
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

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

H.sort()
for i in range(n-k):
    count+=(H[i])
print(count)
N,K = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
A.sort(reverse=True)
B = 0
ans = 0
for a in A:
    if B<K:
        B+=1
    else:
        ans += a

print(ans)
n,k=list(map(int,input().split()))
h=list(map(int,input().split()))

l=sorted(h,reverse=True)

ans=0
for i in range(k,n):
  ans=ans+l[i]
print(ans)
N,K = map(int, input().split())
H = list(map(int, input().split()))

list.sort(H, reverse=True)
for i in range(N):
    if i<=K-1:
        H[i] = 0

print(sum(H))
N, K = map(int,input().split())
H = list(map(int,input().split()))
H.sort(reverse = True)

if K <= N:
  for i in range(K):
    H[i] = 0
else:
  for i in range(N):
    H[i] = 0
print(sum(H))
N, K = map(int, input().split())
H = list(map(int, input().split()))

H.sort()

print(sum(H[:max(N-K, 0)]))
n,k=map(int,input().split())
arr=sorted([int(x) for x in input().split()],reverse=True)
print(sum(arr[k:]))
def main():
    n, k = map(int, input().split())
    *h, = sorted(map(int, input().split()), reverse=True)
    print(sum(h[k:]))


if __name__ == '__main__':
    main()

# import sys
#
# sys.setrecursionlimit(10 ** 7)
#
# input = sys.stdin.readline
# rstrip()
# int(input())
# map(int, input().split())
# coding: utf-8
import heapq
n,k = [int(x) for x in input().split()]
h = sorted([int(x) for x in input().split()])
#print(h)
s = 0
if k >= n:
    print(0)
else:
    h = h[:n-k]
    for j in h:
        s += j
    print(s)
N, K = map(int, input().split())
enemy = sorted(map(int, input().split()))
if N <= K:
  print(0)
else:
  print(sum(enemy[:N-K]))
class Culuculation():
  N = 0
  K = 0
  H = []
  
  #初期化。ここで引数も受け取る
  def __init__(self):
    self.N, self.K = ( int(x) for x in input().split(' '))
    self.H = [int(x) for x in input().split(' ')]

  #計算処理
  def culc(self):
    self.H.sort(reverse=True)
    if self.N >= self.K:
      del self.H[0:self.K]
    else:
      self.H.clear()
    print(sum(self.H))

def main():
  tmp = Culuculation()
  tmp.culc()

if __name__=='__main__':
  main()
n,k = map(int,input().split())
oppo = list(input().split())
for i in range(len(oppo)):
    oppo[i] = int(oppo[i])

oppo = sorted(oppo)
attack = 0

if  k >= n:
    print(0)
else:
    for i in range(0,len(oppo)-k):
        attack = attack + oppo[i]
    print(attack)
def main():
    N, K = map(int, input().split(" "))
    H = list(map(int, input().split(" ")))
    H.sort(reverse=True)
    print(sum(H[K:]))


if __name__ == '__main__':
    main()
N, K = map(int, input().split())
Hs = map(int,input().split())
print(sum(sorted(Hs, reverse=True)[K::]))
N, K=input().split()
hp=input().split()
j = sorted([int(x) for x in hp])
print(sum([j[x] for x in range(int(N) - int(K))])) if int(K) < int(N) else print(0)
n,k = map(int,input().split())
h = list(map(int,input().split()))


h = sorted(h,reverse = True)
h = h[k:]
print(sum(h))
data  = [int(_) for _ in input().split()]
enemy = [int(_) for _ in input().split()]

if len(enemy) < data[1]:
    print(0)
    exit()
elif data[1] == 0:
    print(sum(enemy))
else:
    enemy.sort()
    
    print(sum(enemy[:-data[1]]))
m,n=map(int,input().split())
l=list(map(int,input().split()))
if len(l)==m:
  l.sort()
  if n<=m:
    for i in range(n):
      l.pop()
    print(sum(l))
  else:
    print(0)
else:
  print(0)
# coding: utf-8
# Your code here!

N, K = map(int, input().split())
H = list(map(int, input().split()))
newH = sorted(H)

if K >= N:
    print(0)
else:
    for i in range(K):
        newH.pop()
    print(sum(newH))
N, K = map(int, input().split())
H = list(map(int,input().split()))
sum = 0
i = K;
H.sort(reverse=True)

if(K >= len(H)):
    print(0)
else:
    for i in range(i, len(H)):
        sum += H[i];
    print(sum)
N,K = map(int,input().split())
H = list(map(int,input().split()))
new_H = sorted(H)
x = 0
for i in range(N-K):
    x += new_H[i]
print(x)