#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int N = 100005;
const int M = 1000005;
int main() {
  int n;
  scanf("%d", &n);
  int x = 0, y = 0;
  vector<pair<int, int> > p;
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    scanf("%d", &y);
    p.push_back(make_pair(x, y));
  }
  x = y = 0;
  int ans[n];
  for (int i = n - 1; i >= 0; i--) {
    int x1 = p[i].first, y1 = p[i].second;
    long long xx = x + x1, yy = y + y1;
    long long xxx = x - x1, yyy = y - y1;
    long long d1 = xx * xx + yy * yy;
    long long d2 = xxx * xxx + yyy * yyy;
    if (d1 <= d2) {
      ans[i] = 1;
      x = xx;
      y = yy;
    } else {
      ans[i] = -1;
      x = xxx;
      y = yyy;
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
