The Zerg army is working on mining more minerals. They have found a mineral patch of length
This drone needs to divide this mineral patch into sections of length
What is the minimum amount of time it will take this single drone to divide the mineral patch into the desired sections?
Constraints
Input Specification
The first line will contain a single integer
Each of the next
Output Specification
Output the number of seconds it will take for the drone to divide the mineral patch accordingly.
Sample Input
3
8
5
8
Sample Output
34
Comments