EasyRating 900
Closest to Zero
Print the number closest to zero. If a negative and a positive are equally close, print the positive one.
Input
n, then n integers.
Output
One integer.
Sample 1
Input
5 7 -10 13 8 4
Output
4
Sample 2
Input
2 -3 3
Output
3
Output appears here