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.
Input
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.
Output
Print the minimum number of digits in which the initial number and $*n*$ can differ.
Note
In the first example, the initial number could be $12$.
In the second example the sum of the digits of $*n*$ is not less than $*k*$. The initial number could be equal to $*n*$.
样例
3
11
1
3
99
0
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。