Problem Statement:
Congratulations!! You're the customer number 1,000,000 who visited Carrefour this month.
Now you have to choose an offer, either you choose two products or get one cash prize.
They grantee that the cash prize value more than each product, but there is no grantee that the cash prize cost more than the total of two products.
To maximize your prize, you want to choose the cash prize if it cost more than the sum of the two products, otherwise, you choose the two products.
Input Format:
given 3 integers a,b and c, represent the value of the two products and the cash prize (we grantee that the cash prize is the greatest value of the three numbers)
Output Format:
the value of your chosen gift (Add the two smallest values together and print them if it's greater than the greatest value, otherwise, print the greatest value)
Sample Input:
7 4 8
Sample Output:
11
Notes:
8 is the greatest value
4 + 7 = 11 which is greater than 8
Added by:

gammal

Added at:

20150203 23:13:25 UTC

Time Limit:

1 second

Partial score:

No
