Problem E
Tarifa
Pero has negotiated a Very Good data plan with his internet
provider. The provider will let Pero use up
If we know how much megabytes Pero has spent in each of the
first
Input
The first line of input contains the integer
Output
The first and only line of output must contain the required value from the task.
Sample Input 1 | Sample Output 1 |
---|---|
10 3 4 6 2 |
28 |
Sample Input 2 | Sample Output 2 |
---|---|
10 3 10 2 12 |
16 |
Sample Input 3 | Sample Output 3 |
---|---|
15 3 15 10 20 |
15 |