A marble factory has donated a large box of marbles to a kindergarten. Each marble has one out of
The governess also knows that children will be jealous if a child gets too many marbles. As an approximation, we will define the envy level in the group as the largest number of marbles given to one child. Help the governess divide the marbles in order to minimize the envy level.
For example, if the box contains RRRR
) and BBBBBBB
) which we have to divide between RR
, RR
, BB
, BB
, BBB
. This is the lowest achievable envy level.
Input Specification
The first line of input contains two positive integers,
Each of the following
Output Specification
The first and only line of output should contain the minimum possible envy level.
Sample Input 1
5 2
7
4
Sample Output 1
3
Sample Input 2
7 5
7
1
7
4
4
Sample Output 2
4
Comments