Given two natural numbers and , determine how many natural numbers with exactly digits are less than .
Two natural numbers and provided on a single line, separated by a space (1 \leq n \leq 12, 1 \leq m \leq 10^{12}).
Output the number of -digit natural numbers that are less than .
Example 1