Medium
Best So Far
Read a list of integers. For each position, print the largest value seen up to that point, on one line.
Input
One line.
Output
One line.
Sample 1
Input
3 1 4 1 5 9 2 6
Output
3 3 4 4 5 9 9 9
Sample 2
Input
5
Output
5
Output appears here