#include <bits/stdc++.h>
using namespace std;
long long res(long long x, long long y) { return x * x + y * y; }
int main() {
  ios::sync_with_stdio(false);
  long long n, ans = 0, xx = 0, yy = 0;
  cin >> n;
  vector<vector<long long> > vl;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    vl.push_back({x, y, i});
  }
  while (true) {
    xx = 0;
    yy = 0;
    random_shuffle(vl.begin(), vl.end());
    for (int i = 0; i < n; i++) {
      long long x = vl[i][0];
      long long y = vl[i][1];
      if (res(xx + x, yy + y) < res(xx - x, yy - y)) {
        v[vl[i][2]] = 1;
        xx += x;
        yy += y;
      } else {
        v[vl[i][2]] = -1;
        xx -= x;
        yy -= y;
      }
    }
    if (sqrtl(res(xx, yy)) <= 1500000) {
      for (int i = 0; i < n; i++) cout << v[i] << " ";
      return 0;
    }
  }
  return 0;
}
