#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  srand(time(0));
  int n;
  cin >> n;
  vector<pair<int, int> > a(n);
  vector<int> id(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i].first >> a[i].second;
  }
  iota((id).begin(), (id).end(), 0);
  function<long long(long long x)> sqr = [&](long long x) { return x * x; };
  long long tx = 0, ty = 0;
  vector<int> ans(n);
  const long long sup = 2.25e12;
  while (1) {
    random_shuffle((id).begin(), (id).end());
    for (int x = 0; x < n; x++) {
      long long d1 = sqr(tx + a[id[x]].first) + sqr(ty + a[id[x]].second);
      long long d2 = sqr(tx - a[id[x]].first) + sqr(ty - a[id[x]].second);
      if (d1 > d2) {
        tx -= a[id[x]].first, ty -= a[id[x]].second;
        ans[id[x]] = -1;
      } else {
        tx += a[id[x]].first, ty += a[id[x]].second;
        ans[id[x]] = 1;
      }
    }
    if (sqr(tx) + sqr(ty) > sup) continue;
    for (int i = 0; i < n; i++) cout << ans[i] << " \n"[i == n - 1];
    return 0;
  }
  return 0;
}
