#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream fin("input.in");
  float n;
  scanf("%f", &n);
  int positive = 0, negative = 0;
  for (int i = 0; i < n; ++i) {
    int input;
    scanf("%d", &input);
    if (input > 0)
      positive++;
    else if (input < 0)
      negative++;
  }
  if (positive >= n / 2)
    printf("%d", 1);
  else if (negative >= n / 2)
    printf("%d", -1);
  else
    printf("%d", 0);
  return 0;
}
