Time limit
2s
Memory limit
256 MB
Three test sets are given. For each test set, N integers are given. Write a program that determines whether their sum S is positive, negative, or zero.
The input consists of exactly 3 test sets. For each test set, the first line contains an integer N (1 <= N <= 100,000). Each of the next N lines contains one integer. The absolute value of each integer is at most 9223372036854775807.
Print exactly 3 lines, one for each test set. If the sum S is 0, print 0; if S is positive, print +; if S is negative, print -.