#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  int zero = 0, neg = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] == 0) {
      zero++;
    } else if (v[i] < 0) {
      neg++;
    }
  }
  int var = (int)ceil(n / 2.0);
  int rest = (n - zero);
  int pos = (n - (zero + neg));
  if (rest < var) {
    cout << 0 << endl;
    return 0;
  } else if (pos >= var) {
    cout << 1 << endl;
    return 0;
  }
  if (neg >= var) {
    cout << -1 << endl;
    return 0;
  } else {
    cout << 0 << endl;
    return 0;
  }
  return 0;
}
