e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Zeros at the end of

Zeros at the end of

Some natural number N can be decomposed into prime factors, among which M dividers, which are 2 and K - 5. How many zeros ends integer N?

Input

The single line contains two integers M and K (0M, K32000).

Output

Single number - the number of trailing zeros.

Time limit 1 second
Memory limit 64 MiB
Input example #1
2 1
Output example #1
1