import sys
input= sys.stdin.readline
K,N = map(int,input().split())
arr = [int(input()) for _ in range(K)]
left, right = 1, max(arr)
while(left<= right):
mid= (left+right)//2
sum = 0
for i in arr:
sum += i//mid
if sum >= N: # ์ ๋ต๋ณด๋ค ์๊ฒ ์๋์ผ๋ฉด
left = mid+1 # ์์์ ์ ๋ฐฉ๊ธ๊ฐ + 1๋ก
else :
right = mid-1
print(right)