#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, a[101], d = 0, x = 0, y = 0, m = 0, p = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    m = max(m, a[i]);
    p = min(p, a[i]);
    if (a[i] > 0)
      x++;
    else if (a[i] < 0)
      y++;
  }
  float z = ceil(n / 2.0);
  if (x >= z)
    d = m;
  else if (y >= z)
    d = p;
  cout << d << endl;
  return 0;
}
