Hard
Running Maximum
Read integers and print the running maximum after each one using
itertools.accumulate with max.Input
One line of integers.
Output
One line.
Sample 1
Input
3 1 4 1 5 9 2
Output
3 3 4 4 5 9 9
Sample 2
Input
5
Output
5
Output appears here