#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int *arr = new int[n];
  int pos = 0, neg = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > 0) {
      pos++;
    } else if (arr[i] < 0) {
      neg++;
    }
  }
  if (pos >= ceil(n / 2.0)) {
    cout << 1;
  } else if (neg >= ceil(n / 2.0)) {
    cout << -1;
  } else {
    cout << 0;
  }
}
