#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
const int N = 3e5 + 10;
const long long pp = 1500000;
long long gcd(long long p, long long q) { return q == 0 ? p : gcd(q, p % q); }
int to[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
int n;
struct nd {
  long long x, y;
  int id;
} p[N];
int a[N];
long long d(long long a, long long b) { return a * a + b * b; }
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> p[i].x >> p[i].y;
    p[i].id = i;
  }
  while (1) {
    random_shuffle(p + 1, p + n + 1);
    long long x = 0, y = 0;
    for (int i = 1; i <= n; i++) {
      if (d(x - p[i].x, y - p[i].y) < d(x + p[i].x, y + p[i].y)) {
        x -= p[i].x, y -= p[i].y;
        a[p[i].id] = -1;
      } else {
        x += p[i].x, y += p[i].y;
        a[p[i].id] = 1;
      }
    }
    if (x * x + y * y <= pp * pp) {
      for (int i = 1; i <= n; i++) {
        cout << a[i];
        if (i != n) cout << " ";
      }
      break;
    }
  }
  return 0;
}
