Author: | Антон Карабанов | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 512 Mb | |
Output file: | Standard output |
Find the smallest positive integer which is divisible by n and starts from digits 2021 in decimal notation.
Input contains a single integer n — the divisor of the required number.
Output a single integer — the answer.
1≤n≤1012
No. | Standard input | Standard output |
---|---|---|
1 |
|
|