Score : $300$ points
Given positive integers $N$ and $M$, find the remainder when $\lfloor \frac{10^N}{M} \rfloor$ is divided by $M$.
Input is given from Standard Input in the following format:
$N$ $M$
Print the answer.
1 2
1
We have $\lfloor \frac{10^1}{2} \rfloor = 5$, so we should print the remainder when $5$ is divided by $2$, that is, $1$.
2 7
0
1000000000000000000 9997
9015