Given n integers, you are asked to remove all the contiguous subarrays that sum up to 0. You should start from the start of the array and move to the end of it, and as soon as a 0-sum-subarray is found, you should remove it from the array.
Input
The first line of the input contains a single integer n (1 β€ n β€ ).
The next line contains n space-separated integers ( β€ β€ ).
Output
The program should print the resulting array after removing all the subarrays that sum up to 0.