Number theory
Recursion-20
Number-01
Number-02
~/algor $ cat problems/sonlar-katta-son-qoldigi
Remainder of a big number
Easy
1000 ms
128 MB
20%
You are given positive integers $N$ and $m$. Find the remainder $N \bmod m$ of dividing $N$ by $m$.
Input
One line with two positive integers: $N$ and $m$. $N$ has no leading zeros.
Output
One integer — $N \bmod m$.
Note
The number of digits of $N$ is from $1$ to $10^{5}$
$1 \le m \le 10^{9}$
Examples
Input #1
123456789012345678901234567890 97
Output #1
52
Input #2
1000 7
Output #2
6