We are interested in computing the number of zeros at the end of the number lcm(a,a+1,...,b), that is, of the least common multiple of numbers a,a+1,...,b.
Subtask 1
When b≤16, we can explicitly compute the $