LearnPy Hub
← Lists problems
Medium

Running Sums

Read a list of integers and print the running total after each element.

Input

One line of integers.

Output

One line.

Sample 1

Input
1 2 3 4
Output
1 3 6 10

Sample 2

Input
5
Output
5
solution.py
Output appears here
Running Sums · Python practice problem · LearnPy Hub