Mr. Takaha is preparing for the holiday season by purchasing N items at a department store. Each item has a regular price denoted as p_i yen (where 1 ≤ i ≤ N).
He possesses a discount coupon that allows him to buy one item at half its regular price. The remaining N-1 items will be purchased at their full regular prices.
Your task is to calculate the total amount Mr. Takaha will pay after applying the discount to the most expensive item.
Input Format
The first line contains an integer N (1 ≤ N ≤ 100), the number of items.
The second line contains N integers p_1, p_2, ..., p_N (1 ≤ p_i ≤ 1000), representing the regular prices of the items.
Output Format
Output a single integer, representing the total amount Mr. Takaha will pay after applying the discount.
Example
Input
text
4
1000 2000 3000 4000
Output
text
9500
Explanation
The prices of the items are 1000, 2000, 3000, and 4000 yen.
The most expensive item is 4000 yen. With the discount, it costs 2000 yen.
The total cost is (1000 + 2000 + 3000 + 2000) = 9500 yen.
Solution
Please place your code solution in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.