Remainder of Division
Compute the remainder left after dividing A by B.
Input format
A single line with a non-negative integer A and a positive integer B (B is at least 1).
Output format
Print the remainder A % B left after dividing A by B.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
17 5Expected output
2Example 2
Input
20 4Expected output
0