Some natural number was written on the board. Its sum of digits was not less than *k*. But you were distracted a bit, and someone changed this number to *n*, replacing some digits with others. It's known that the length of the number didn't change.

You have to find the minimum number of digits in which these two numbers can differ.

The first line contains integer *k* (1 ≤ *k* ≤ 10^{9}).

The second line contains integer *n* (1 ≤ *n* < 10^{100000}).

There are no leading zeros in *n*. It's guaranteed that this situation is possible.

提交代码