No submissions yet

Submit your solution to display here.

Please login/signup to submit your solution.
Loading...

Input

4 10 20 30 40 4 1 1 1 1

Expected Output

1 1 1 1