After Fuad got acquainted with the remainder operator, he thought about the next mathematical problem. He wonders how to compute .
Here represents the remainder operator and represents the remainder obtained when is divided by . For example .
Find the value of the above expression for the given positive integers and .
Two integers and .
Print the value of the given expression.