#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int pos = 0, neg = 0, num;
  for (int i = 0; i < n; i++) {
    cin >> num;
    if (num > 0)
      pos++;
    else if (num < 0)
      neg++;
  }
  if (pos * 2 >= n) {
    cout << 1;
  } else if (neg * 2 >= n) {
    cout << -1;
  } else {
    cout << 0;
  }
  return 0;
}
