#include <bits/stdc++.h>
using namespace std;
struct point {
  long long x;
  long long y;
  int p;
};
const long long UP = 2250000000000;
const int MAXN = 1e5 + 100;
int n;
point c[MAXN];
long long visit[MAXN];
long long sqr(long long x) { return x * x; }
bool splay() {
  random_shuffle(c + 1, c + n + 1);
  long long nx = 0, ny = 0;
  for (int i = 1; i < n + 1; ++i) {
    long long t1 = sqr(nx + c[i].x) + sqr(ny + c[i].y),
              t2 = sqr(nx - c[i].x) + sqr(ny - c[i].y);
    if (t1 < t2) {
      visit[c[i].p] = 1;
      nx += c[i].x;
      ny += c[i].y;
    } else {
      visit[c[i].p] = -1;
      nx -= c[i].x;
      ny -= c[i].y;
    }
  }
  return sqr(nx) + sqr(ny) <= UP;
}
int main() {
  srand((unsigned long long)(new char));
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i < n + 1; ++i) {
    cin >> c[i].x >> c[i].y;
    c[i].p = i;
  }
  while (!splay())
    ;
  for (int i = 1; i < n + 1; ++i) cout << visit[i] << " ";
  cout << endl;
  return 0;
}
