CF835B The number on the board

Description

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 Format

The first line contains integer $ k $ ( $ 1

Output Format

Print the minimum number of digits in which the initial number and $ n $ can differ.

Explanation/Hint

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 $ .