#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], p = 0, t = 0;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    if (a[i] > 0)
      p++;
    else if (a[i] < 0)
      t++;
    else
      continue;
  }
  if (p >= ceil(n / (2.0)))
    cout << 1;
  else if (t >= ceil(n / (2.0)))
    cout << -1;
  else
    cout << 0;
  return 0;
}
