#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  long long m, x, p = 0, n = 0, i;
  cin >> m;
  for (i = 0; i < m; i++) {
    cin >> x;
    if (x > 0) p++;
    if (x < 0) n++;
  }
  if (p >= ceil(m / (double)2))
    cout << "1";
  else if (n >= ceil(m / (double)2))
    cout << "-1";
  else
    cout << "0";
}
