#include <bits/stdc++.h>
using namespace std;
long long x[100005];
long long y[100005];
int ans[100005];
long long sumx, sumy;
long long nowx, nowy;
long long n;
long long z;
long long zz;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  srand(time(NULL));
  for (int i = 1; i <= n; i++) {
    cin >> x[i];
    cin >> y[i];
  }
  nowx = 1000000000;
  nowy = 1000000000;
  while ((sqrt(nowx * nowx + nowy * nowy)) > 1500000) {
    nowx = 0;
    nowy = 0;
    for (int i = 1; i <= n; i++) {
      if ((nowx + x[i]) * (nowx + x[i]) + (nowy + y[i]) * (nowy + y[i]) <=
          (nowx - x[i]) * (nowx - x[i]) + (nowy - y[i]) * (nowy - y[i])) {
        z = rand() % 1000000000000000000;
        zz = rand() % 630;
        if (z == 1 && zz == 1) {
          ans[i] = -1;
          nowx -= x[i];
          nowy -= y[i];
        } else {
          ans[i] = 1;
          nowx += x[i];
          nowy += y[i];
        }
      } else {
        z = rand() % 1000000000000000000;
        zz = rand() % 630;
        if (z == 1 && zz == 1) {
          ans[i] = 1;
          nowx += x[i];
          nowy += y[i];
        } else {
          ans[i] = -1;
          nowx -= x[i];
          nowy -= y[i];
        }
      }
    }
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << " ";
}
