Factorial of a natural number (denoted ) is the product of all natural numbers from to inclusive:
You are required to determine how many digits the number ends with in base- numeral system.
The input file contains two numbers: and (1 \leq N \leq 10^9, 2 \leq K \leq 5000). Both numbers are given in decimal notation.
Output the number of zeros with which the number ends in the base- numeral system. Print the answer in decimal system.
Example 1