#include <bits/stdc++.h>
using namespace std;
int inf = 1e9 + 7;
int main() {
  int n, cp = 0, cn = 0;
  cin >> n;
  int x[n];
  for (int &i : x) {
    cin >> i;
    if (i > 0)
      cp++;
    else if (i < 0)
      cn++;
  }
  if (cp * 2 >= n)
    cout << 1 << '\n';
  else if (cn * 2 >= n)
    cout << -1;
  else
    cout << 0;
}
