#include <bits/stdc++.h>
using namespace std;
long long binexp(long long a, long long b, long long m) {
  long long res = 1;
  a = a % m;
  while (b) {
    if (b & 1) res = (a * 1LL * res) % m;
    a = (a * 1LL * a) % m;
    b >>= 1;
  }
  return res;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  pair<pair<long long, long long>, long long> p[n];
  for (long long i = 0; i < n; i++) {
    cin >> p[i].first.first >> p[i].first.second;
    p[i].second = i;
  }
  while (1) {
    random_shuffle(p, p + n);
    long long px = 0, py = 0;
    long long answ[n];
    for (long long i = 0; i < n; i++) {
      long long u1 = px + p[i].first.first, v1 = py + p[i].first.second,
                u2 = px - p[i].first.first, v2 = py - p[i].first.second;
      if (u1 * u1 + v1 * v1 <= u2 * u2 + v2 * v2) {
        answ[p[i].second] = 1;
        px = u1, py = v1;
      } else {
        answ[p[i].second] = -1;
        px = u2, py = v2;
      }
    }
    if (px * px + py * py <= 2250000000000LL) {
      for (long long i = 0; i < n; i++) cout << answ[i] << " ";
      return 0;
    }
  }
  return 0;
}
