The number of zeros at the end of a number#1357

The number of zeros at the end of a number

1 second
64 megabytes
Very easy

Some natural number can be decomposed into prime factors, among which factors are equal to , and factors are equal to . How many zeros does the natural number end with?

Input

The only line contains two numbers and (0 \leq M, K \leq 32000).

Output

Output a single number — the number of trailing zeros.

Examples

Example 1

Loading
Loading