#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9 + 7;
const long long LINF = 2e18 + 7;
const int MXN = 2e2 + 5;
void io() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
int a[int(1e5) + 5];
long long cx[int(1e5) + 5];
long long cy[int(1e5) + 5];
int main() {
  io();
  int N;
  cin >> N;
  long long x = 0, y = 0;
  for (int i = 0; i < N; ++i) {
    cin >> cx[i] >> cy[i];
  }
  for (int i = N - 1; i >= 0; --i) {
    long long px = x + cx[i], py = y + cy[i];
    long long mx = x - cx[i], my = y - cy[i];
    if (sqrt(px * px + py * py + .0) <= sqrt(mx * mx + my * my + .0)) {
      x = px;
      y = py;
      a[i] = 1;
    } else {
      x = mx;
      y = my;
      a[i] = -1;
    }
  }
  for (int i = 0; i < N; ++i) cout << a[i] << ' ';
}
