Question
Weightlifting

Ram, being an international powerlifter, has participated in a powerlifting competition.
The competition consists of three rounds, i.e., squat, bench press, and, deadlift. In each round, the goal is to lift maximum weight, and Ram gets two attempts to do that.
For each round, the score of best attempt is taken into consideration and the total score is calculated as the sum of scores of all rounds. You are given Ram's score in both attempts of rounds 1, 2 and 3, as A1​, A2​, B1​, B2​, C1​, and C2​ respectively. Find the value of Ram's total score in the competition.

Input
The first and only line of input consists of 6 space-separated integers A1, A2, B1, B2, C1, C2 , denoting Chef's score in both attempts of round 1, 2 and 3 respectively.

Constraints
200 ≤ A1, A2, B1, B2, C1, C2 ≤ 300
Output
Output a single integer denoting Ram's total score in the competition.
Example
Sample Input
250 240 205 217 296 299
Sample Output
766
Explanation
Chef score in each round
Round 1, He scored 250, 240 in both attempts. Thus, the score under consideration would be 250.
Round 2, He scored 205, 217 in both attempts. Thus, the score under consideration would be 217.
Round 3, He scored 296, 299 in both attempts. Thus, the score under consideration would be 299.
Ram's total score in competition is 250 + 217 + 299 = 766.

Online