Write a program to compute the remainder when a given large number is divided by a specified digit.
The first line contains the digit (1 \leq K \leq 9). The second line contains a natural number , which can have up to digits.
Print the remainder of the division of by .
Example 1