#include <bits/stdc++.h>
using namespace std;
long long sign[100005];
pair<pair<long long, long long>, long long> point[100005];
long long dist(long long x, long long y) { return x * x + y * y; }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> point[i].first.first >> point[i].first.second;
    point[i].second = i;
  }
  long long sign[n];
  while (true) {
    random_shuffle(point, point + n);
    long long x = 0, y = 0;
    for (long long i = 0; i < n; i++) {
      long long ux = x - point[i].first.first;
      long long uy = y - point[i].first.second;
      long long vx = x + point[i].first.first;
      long long vy = y + point[i].first.second;
      if (dist(ux, uy) < dist(vx, vy)) {
        x = ux;
        y = uy;
        sign[point[i].second] = -1;
      } else {
        x = vx;
        y = vy;
        sign[point[i].second] = 1;
      }
    }
    if (dist(x, y) <= 2250000000000ll) {
      for (long long i = 0; i < n; i++) cout << sign[i] << " ";
      cout << endl;
      return 0;
    }
  }
  return 0;
}
