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

l = 0
r = 10**10

while r > l + 1:
    m = (r+l)//2
    count = 0
    for i in a:
        if i <= m:
            continue
        count += (i)//m
        
    if count > k:
        l = m
    else:
        r = m
    
print(r) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k a = list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split l = 0 l 0 r = 10**10 r 10**10 10 10 while r > l + 1:
    m = (r+l)//2
    count = 0
    for i in a:
        if i <= m:
            continue
        count += (i)//m
        
    if count > k:
        l = m
    else:
        r = m
     r > l + 1 r l + 1 l 1 m = (r+l)//2 m (r+l)//2 r+l r l 2 count = 0 count 0 for i in a:
        if i <= m:
            continue
        count += (i)//m
        
     i a if i <= m:
            continue
         i <= m i m continue count += (i)//m count (i)//m i m if count > k:
        l = m
    else:
        r = m
     count > k count k l = m l m r = m r m print(r) print r count += (i)//m (i)//m count l = 0 0 l n,k = map(int,input().split()) map(int,input().split()) n r = m m r a = list(map(int,input().split())) list(map(int,input().split())) a m = (r+l)//2 (r+l)//2 m k = map(int,input().split()) map(int,input().split()) k count = 0 0 count l = m m l r = 10**10 10**10 r
n,k = map(int,input().split())
a = list(map(int,input().split()))

l = 0
r = 10**10

while r > l + 1:
    m = (r+l)//2
    count = 0
    for i in a:
        if i <= m:
            continue
        count += (i)//m
        
    if count > k:
        l = m
    else:
        r = m
    
print(r)
