Problem Description
Given two numbers and . Output the remainder of the division of by .
Input Format
The first line contains two integers and , separated by a space. .
Output Format
Output a single integer - the answer.
Examples
Example 1
Input
15 4
Output
3
Example 2
Input
16 4
Output
0
Example 3
Input
5 2
Output
1