#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i = 0, max = 0, count1 = 0, count2 = 0;
  cin >> n;
  int a[n];
  float b[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (((float)n / 2) > (n / 2)) {
    max = (n / 2) + 1;
  } else {
    max = n / 2;
  }
  for (i = 0; i < n; i++) {
    if ((a[i] > 0)) {
      count1++;
    } else if (a[i] < 0) {
      count2++;
    }
  }
  if (count1 >= max) {
    cout << 1 << endl;
  } else if (count2 >= max) {
    cout << -1 << endl;
  } else {
    cout << 0 << endl;
  }
}
