#include <bits/stdc++.h>
using namespace std;
string str[4];
long long x[300005], y[300005], dir[300005], vis[300005];
vector<long long> v;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m, k, p, a, b, c, a1, b1, a2, b2;
  srand(time(NULL));
  while (cin >> n) {
    double lim = (1.5 * 1000000);
    lim = lim * lim;
    for (long long i = 0; i < n; i++) {
      cin >> x[i] >> y[i];
      v.push_back(i);
    }
    while (1) {
      a = b = 0;
      random_shuffle(v.begin(), v.end());
      for (long long j = 0; j < v.size(); j++) {
        long long i = v[j];
        a1 = a + x[i];
        b1 = b + y[i];
        a2 = a - x[i];
        b2 = b - y[i];
        k = a1 * a1 + b1 * b1;
        m = a2 * a2 + b2 * b2;
        if (k <= m) {
          dir[i] = 1;
          a = a1;
          b = b1;
          p = k;
        } else {
          dir[i] = -1;
          a = a2;
          b = b2;
          p = m;
        }
      }
      double tmp = (double)(p);
      if (tmp <= lim) break;
    }
    for (long long i = 0; i < n; i++) cout << dir[i] << " ";
    cout << endl;
    v.clear();
  }
  return 0;
}
