#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<int> b(n), xi(n), yi(n);
  for (int i = 0; i < n; ++i) {
    cin >> xi[i] >> yi[i];
    b[i] = i;
  }
  while (1) {
    random_shuffle(b.begin(), b.end());
    vector<int> ans(n);
    long long px = 0;
    long long py = 0;
    for (int i = 0; i < n; ++i) {
      int j = b[i];
      int x = xi[j], y = yi[j];
      long long u = (px + x) * (px + x) + (py + y) * (py + y);
      long long h = (px - x) * (px - x) + (py - y) * (py - y);
      if (u < h) {
        ans[j] = 1;
        px += x;
        py += y;
      } else {
        ans[j] = -1;
        px -= x;
        py -= y;
      }
    }
    if (px * px + py * py <= 1.5 * 1.5 * 1e12) {
      for (int i = 0; i < n; ++i) {
        cout << ans[i] << ' ';
      }
      break;
    }
  }
}
