#include <bits/stdc++.h>
using namespace std;
long long int n, lo, hi, mid, candies, num, x[200005], y[200005], ans[200005],
    temp, indexx, test1, test2, maxcap;
long long int dis(long long int r, long long int s) { return r * r + s * s; }
long long int input() {
  cin >> n;
  long long int currx, curry;
  curry = currx = 0;
  maxcap = 1e6;
  maxcap = sqrt(12.5) * maxcap;
  for (int i = 0; i < n; ++i) {
    cin >> x[i] >> y[i];
    test1 = test2 = 0;
    if (abs(currx + x[i]) <= maxcap && abs(curry + y[i]) <= maxcap) {
      test1 = 1;
    }
    if (abs(currx - x[i]) <= maxcap && abs(curry - y[i]) <= maxcap) {
      test2 = 1;
    }
    if ((test1 == 1 && test2 == 1) || (test2 == 0 && test1 == 0)) {
      if (dis(currx + x[i], curry + y[i]) <= dis(currx - x[i], curry - y[i])) {
        ans[i] = 1;
        currx = currx + x[i];
        curry = curry + y[i];
      } else {
        currx = currx - x[i];
        curry = curry - y[i];
        ans[i] = -1;
      }
      continue;
    }
    if (test1 == 1) {
      ans[i] = 1;
      currx = currx + x[i];
      curry = curry + y[i];
    } else {
      ans[i] = -1;
      currx = currx - x[i];
      curry = curry - y[i];
    }
  }
  for (int j = 0; j < 50; ++j) {
    for (int i = 0; i < n; ++i) {
      if (ans[i] == 1) {
        if (dis(currx - 2 * x[i], curry - 2 * y[i]) < dis(currx, curry)) {
          ans[i] = -1;
          currx = currx - 2 * x[i];
          curry = curry - 2 * y[i];
        }
      }
      if (ans[i] == -1) {
        if (dis(currx + 2 * x[i], curry + 2 * y[i]) < dis(currx, curry)) {
          ans[i] = 1;
          currx = currx + 2 * x[i];
          curry = curry + 2 * y[i];
        }
      }
    }
  }
  if (dis(currx, curry) > maxcap * maxcap) {
    for (int i = 0; i < n; ++i) {
      if (ans[i] == 1) {
        if (dis(currx - 2 * x[i], curry - 2 * y[i]) <= maxcap * maxcap) {
          ans[i] = -1;
          break;
        }
      }
      if (ans[i] == -1) {
        if (dis(currx + 2 * x[i], curry + 2 * y[i]) <= maxcap * maxcap) {
          ans[i] = 1;
          break;
        }
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
int main() {
  input();
  return 0;
}
