#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  vector<int> arr(n);
  for (auto &item : arr) {
    cin >> item;
  }
  int r1 = 0;
  int r2 = 0;
  int res;
  for (auto &item : arr) {
    if (item > 0)
      r1++;
    else if (item < 0)
      r2++;
  }
  if (r1 >= ceil(n / 2.0))
    res = 1;
  else if (r2 >= ceil(n / 2.0))
    res = -1;
  else
    res = 0;
  cout << res << endl;
  return 0;
}
