Limits 1s, 512 MB

Suppose you have n bags of apples and one type of basket. In each of those baskets, you can keep at most m apples. Suppose that you have infinitely many baskets of that type. You need to put the apples from the bags into the baskets. What is the minimum number of baskets you need?

Input

First line of the input contains nn, mm (1n,m10001 \le n, m \le 1000); nn is the number of bags and mm is the number of apples each basket can contain. In the following line there are nn space separated integers each means aia_i ( 1ai501 \le a_i \le 50) where aia_i is the number of apples ii-th bag has.

Output

Just print a line that contains the minimum number of baskets you need.

Sample

InputOutput
2 3
1 2
1

Submit

Login to submit.

Statistics

91% Solution Ratio
sakibalaminEarliest, Nov '17
Tarik.amtolyFastest, 0.0s
Tofsir_IULightest, 0 B
bokaifShortest, 87B
Toph uses cookies. By continuing you agree to our Cookie Policy.