#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(NULL));
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long ct_pos = 0, ct_neg = 0, ct_zero = 0;
  for (long long i = 0; i < n; i++) {
    if (a[i] > 0) {
      ct_pos++;
    } else if (a[i] < 0) {
      ct_neg++;
    } else {
      ct_zero++;
    }
  }
  long long val;
  if (n % 2 == 0) {
    val = n / 2;
  } else {
    val = (n / 2) + 1;
  }
  if (ct_pos >= val) {
    cout << 1 << endl;
  } else if (ct_neg >= val) {
    cout << -1 << endl;
  } else {
    cout << 0 << endl;
  }
  return 0;
}
