Division by a digit#5053

Division by a digit

1 second
64 megabytes
Very easy

Write a program to compute the remainder when a given large number is divided by a specified digit.

Input

The first line contains the digit (1 \leq K \leq 9). The second line contains a natural number , which can have up to digits.

Output

Print the remainder of the division of by .

Examples

Example 1

Loading
Loading