#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 0, d = 0;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > 0) {
      c++;
    } else if (a[i] < 0) {
      d++;
    }
  }
  if (2 * c >= n) {
    cout << 1;
  } else if (2 * d >= n) {
    cout << -1;
  } else {
    cout << 0;
  }
  return 0;
}
