#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  long long x[n], y[n];
  long long sx, sy;
  int sign[n];
  double val, comp1, comp2;
  for (int i = 0; i < n; ++i) cin >> x[i] >> y[i];
  vector<pair<double, int> > v;
  for (int i = 0; i < n; ++i) {
    val = sqrt(x[i] * x[i] + y[i] * y[i]);
    v.push_back({val, i});
  }
  sort(v.begin(), v.end());
  sign[v[n - 1].second] = 1;
  sx = x[v[n - 1].second], sy = y[v[n - 1].second];
  for (int i = n - 2; i >= 0; --i) {
    comp1 = sqrt((sx + x[v[i].second]) * (sx + x[v[i].second]) +
                 (sy + y[v[i].second]) * (sy + y[v[i].second]));
    comp2 = sqrt((sx - x[v[i].second]) * (sx - x[v[i].second]) +
                 (sy - y[v[i].second]) * (sy - y[v[i].second]));
    if (comp1 > comp2) {
      sign[v[i].second] = -1;
      sx = sx - x[v[i].second];
      sy = sy - y[v[i].second];
    } else {
      sign[v[i].second] = 1;
      sx = sx + x[v[i].second];
      sy = sy + y[v[i].second];
    }
  }
  if (sqrt(sx * sx + sy * sy) > 1500000) {
    sign[v[0].second] = 1;
    sx = x[v[0].second], sy = y[v[0].second];
    for (int i = 1; i < n; ++i) {
      comp1 = sqrt((sx + x[v[i].second]) * (sx + x[v[i].second]) +
                   (sy + y[v[i].second]) * (sy + y[v[i].second]));
      comp2 = sqrt((sx - x[v[i].second]) * (sx - x[v[i].second]) +
                   (sy - y[v[i].second]) * (sy - y[v[i].second]));
      if (comp1 > comp2) {
        sign[v[i].second] = -1;
        sx = sx - x[v[i].second];
        sy = sy - y[v[i].second];
      } else {
        sign[v[i].second] = 1;
        sx = sx + x[v[i].second];
        sy = sy + y[v[i].second];
      }
    }
  }
  for (int i = 0; i < n; ++i) cout << sign[i] << ' ';
}
