#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 1e6 + 10;
const long long INF = 1e18;
const long double EPS = 1e-12;
vector<pair<pair<int, int>, int> > vec;
int c[100005];
int main() {
  srand(time(NULL));
  int n;
  scanf("%d", &n);
  for (int i = 0; i < (int)n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    vec.push_back(make_pair(make_pair(x, y), i));
  }
  long long tmp = 1.5 * (long long)(1e6);
  tmp *= tmp;
  for (int iii = 0; iii < (int)100; iii++) {
    random_shuffle(vec.begin(), vec.end());
    long long x = 0;
    long long y = 0;
    for (int i = 0; i < (int)n; i++) {
      int id = vec[i].second;
      long long x_ = x + vec[i].first.first;
      long long y_ = y + vec[i].first.second;
      long long _x = x - vec[i].first.first;
      long long _y = y - vec[i].first.second;
      if (x_ * x_ + y_ * y_ >= _x * _x + _y * _y) {
        c[id] = -1;
        x = _x;
        y = _y;
      } else {
        c[id] = 1;
        x = x_;
        y = y_;
      }
    }
    if (x * x + y * y <= tmp) {
      break;
    }
  }
  for (int i = 0; i < (int)n; i++) {
    printf("%d ", c[i]);
  }
  printf("\n");
  return 0;
}
