A magical machine takes a number as input. It multiplies all whole numbers from 1 to and counts the number of zeros at the end of the number. This count becomes the new input, and the machine repeats the process using this new number. If the input is 0, the machine outputs 0. If the machine performs this process a total of times, what will be the final number?