Олимпиадный тренинг

Задача 33254. Error


The A array contains n integers. Output the + sign if the number of minimum positive numbers is greater than the maximum number of negative ones. Print the sign - if the number of minimal positive numbers is less than the maximum negative ones. If equal, print the sign =.
If there are no positive (negative) numbers among the numbers, then the number of minimum positive (maximum negative) numbers is considered equal to 0.
 

Input
The first line of the input contains the number n (0 <= n <= 105). The second line contains n integers ai - array elements (-109 <= a i <= 109).

Imprint
Output one character (+, -, =) - the answer to the problem.

 
Examples
# Input Output
1 5
1 1 2 -2 -1
>
2 7
1 1 2 -1 -1 -2 -3
=

Запрещенные операторы:min;max;sort;count