#include <bits/stdc++.h>
using namespace std;
using ll = long long;
auto inf = numeric_limits<int>::max();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  int cnt1 = 0, cnt2 = 0;
  int item;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> item;
    if (item > 0) {
      ++cnt1;
    } else if (item < 0) {
      ++cnt2;
    }
  }
  if (2 * cnt1 >= n) {
    cout << 1;
  } else if (2 * cnt2 >= n) {
    cout << -1;
  } else {
    cout << 0;
  }
  return 0;
}
