#include <bits/stdc++.h>
using namespace std;
struct Node {
  int x, y, pos;
} a[100005];
int n, m = 500, p[100005];
long long x, y;
int main() {
  srand(0717);
  int i;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i].x >> a[i].y;
    a[i].pos = i;
  }
  while (m--) {
    random_shuffle(a + 1, a + n + 1);
    for (i = 1; i <= n; i++)
      if (((x + a[i].x) * (x + a[i].x)) + ((y + a[i].y) * (y + a[i].y)) <=
          ((x - a[i].x) * (x - a[i].x)) + ((y - a[i].y) * (y - a[i].y)))
        p[a[i].pos] = 1, x += a[i].x, y += a[i].y;
      else
        p[a[i].pos] = -1, x -= a[i].x, y -= a[i].y;
    if (((x) * (x)) + ((y) * (y)) <= ((1500000ll) * (1500000ll))) {
      for (i = 1; i <= n; i++) cout << p[i] << ' ';
      return 0;
    }
  }
  return 0;
}
