eolymp
bolt
Try our new interface for solving problems
Problems

Zeros at the end of

Zeros at the end of

Some natural number \textbf{N} can be decomposed into prime factors, among which \textbf{M} dividers, which are \textbf{2} and \textbf{K} - \textbf{5}. How many zeros ends integer \textbf{N}? \InputFile The single line contains two integers \textbf{M} and \textbf{K} (\textbf{0} ≤ \textbf{M}, \textbf{K} ≤ \textbf{32000}). \OutputFile Single number - the number of trailing zeros.
Time limit 1 second
Memory limit 64 MiB
Input example #1
2 1
Output example #1
1