Sum of some real numbers
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Four real numbers are given. Find the sum of first two, of first three and of all four numbers.
Input
Four real numbers.
Output
Print in the first line the sum of first two numbers. Print in the second line the sum of first three numbers. Print in the third line the sum of all four numbers. All sums must be printed with decimal digits.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 65%