Time limit
2s
Memory limit
128 MB
A game uses banknotes as its currency. The set of banknote denominations must satisfy the following conditions.
A player receives N won at the start of the game. For the same amount of money, using fewer banknotes is better. You may choose any denomination set satisfying the conditions. Find the minimum number of banknotes needed to make exactly N won.
The input contains two integers N and K.
Print the minimum number of banknotes needed to make N won.