### Problem Statement

Find the smallest possible sum of the digits in the decimal notation of a positive multiple of $K$.

### Constraints

• $2≤K≤10^5$
• $K$ is an integer.

### Input

Input is given from Standard Input in the following format:

### Output

Print the smallest possible sum of the digits in the decimal notation of a positive multiple of $K$.

### Sample Output 1

$12=6×2$ yields the smallest sum.

### Sample Output 2

$11111=41×271$ yields the smallest sum.