Division by a digit
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
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 K (1 ≤ K ≤ 9). The second line contains a natural number N, which can have up to 255 digits.
Output
Print the remainder of the division of N by K.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 41%