#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const double EPS = 1e-7;
const ll INF = 1000000000;
int main() {
  ull n, countm = 0, countp = 0, countz = 0;
  ll t;
  cin >> n;
  for (ull i = 0; i < n; ++i) {
    cin >> t;
    if (t > 0)
      countp++;
    else if (t < 0)
      countm++;
    else
      countz++;
  }
  if (countp * 2 >= n) {
    cout << 1 << endl;
  } else {
    if (countm * 2 >= n)
      cout << -1 << endl;
    else
      cout << 0 << endl;
  }
  return 0;
}
