#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, pos = 0, neg = 0;
  int x;
  cin >> n;
  x = ceil(n / 2.0);
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a > 0)
      pos++;
    else if (a < 0)
      neg++;
  }
  if (pos >= x)
    cout << "1\n";
  else if (neg >= x)
    cout << "-1\n";
  else
    cout << "0\n";
  return 0;
}
