#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int mark;
  if (n % 2 == 0) {
    mark = n / 2;
  } else {
    mark = (n / 2) + 1;
  }
  int pos = 0, neg = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] > 0) {
      pos++;
    } else if (a[i] < 0) {
      neg++;
    }
  }
  if (pos >= mark) {
    cout << "1" << endl;
  } else if (neg >= mark) {
    cout << "-1" << endl;
  } else {
    cout << "0" << endl;
  }
  return 0;
}
