Given two integers and .
Write a program that prints the remainder when is divided by , that is, .
Input
The input is given in the following format.
Output
Print on the first line.
Constraints
- .
- .
Subtasks
Samples
Input
7 3
Output
1
When is divided by , the quotient is and the remainder is .