Alex is participating in 'Simplified Week of Code', a contest that releases one problem per day for days. Each problem is numbered to match its day of release, so problem is released on day , problem is released on day , and so on.
If a problem is solved on the same day it's released, it scores full marks ( points). For each day after its release, a problem's worth decreases at a rate of points per day until it reaches zero.
For example, on day , problem is worth points; on day , problem is worth points; on day and beyond, problem is worth points.
Alex solves all the problems and writes down the day number as she finishes each solution. Given Alex's completion date for each problem, calculate her final score.
Input Format
Five integers, , on separate lines, where is the day number when Alex solved problem .
Constraints
Output Format
Print the sum of Alex's five scores for the contest problems.
Sample Input
1
2
5
4
5
Sample Output
480
Explanation
Problem is solved on day , while it's still worth points.
Problem is solved on day , while it's still worth points.
Problem is solved on day , when two days have passed and it's worth points.
Problem is solved on day , while it's still worth points.
Problem is solved on day , while it's still worth points.
Her final score is .