You have to take five numbers, stored in variables with the following names
one, two, three, four, five, six
The value stored in the variabletwo, five, six
has been doubled, such that if initially the value was 3, it has become 6
The value stored in the variablethree, four
has been increased three times, such that if initially it was 3, it has become 9
The value stored in the variable one
has not been changed.
Find the sum of the updated values stored inone, two, three, four, five, six
The first and the only line of input contains the values stored in the variableone, two, three, four, five, six
Find the sum of the updated values stored inone, two, three, four, five, six
1 2 3 4 5
48
In the sample test case, the value stored inone = 1, two =2, three = 3, four = 4, five = 5, six = 6
After updating the values, the values stored becomeone = 1, two = 4, three = 9 , four = 12, five = 10, six = 12
Adding the updated values the sum becomes1 + 4 + 9 + 12 + 10 + 12 = 48
, which is the required answer