eolymp
bolt
Try our new interface for solving problems
Problems

Discounts

Discounts

Time limit 1 second
Memory limit 64 MiB

In the electronics supermarket, if you believe the TV advertisement, there is a system of discounts: out of two purchased products, only the cost of the more expensive product is paid in full, and the other is given for free. What is the smallest amount you have to pay to buy all three products, if the price of each is known.

Input data

Three natural numbers a, b, с are the prices of three products (1 ≤ a, b, с ≤ 10000).

Output data

The price you will have to pay.

Examples

Input example #1
8 11 6
Output example #1
17
Source ІІ етап Всеукраїнської олімпіади в Житомирської області