#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  srand(time(nullptr));
  int n;
  cin >> n;
  vector<vector<int>> p;
  p.reserve(n);
  vector<int> c(n);
  for (int i = 0; i < n; ++i) {
    int x, y;
    cin >> x >> y;
    p.push_back({x, y, i});
  }
  long long goal = 1.5e6;
  goal *= goal;
  while (true) {
    random_shuffle(p.begin(), p.end());
    long long x = 0, y = 0;
    for (int i = 0; i < n; ++i) {
      long long ux = x + p[i][0], uy = y + p[i][1];
      long long vx = x - p[i][0], vy = y - p[i][1];
      if (ux * ux + uy * uy < vx * vx + vy * vy) {
        c[p[i][2]] = 1;
        x = ux;
        y = uy;
      } else {
        c[p[i][2]] = -1;
        x = vx;
        y = vy;
      }
    }
    if (x * x + y * y <= goal) {
      for (int i = 0; i < n; ++i) {
        cout << c[i] << " ";
      }
      cout << "\n";
      return 0;
    }
  }
}
