#include <bits/stdc++.h>
using namespace std;
template <class T>
using min_queue = priority_queue<T, vector<T>, greater<T>>;
template <typename Args>
void kill(Args args) {
  cout << args << "\n";
  exit(0);
}
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const double PI = acos(-1);
const long long MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const long long LLINF = 0x3f3f3f3f3f3f3f3f;
const int N = 201010;
int idx[N];
long long x[N], y[N], ans[N];
int n;
void solve(int tc) {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    idx[i] = i;
    cin >> x[i];
    cin >> y[i];
    if (x[i] < 0) {
      x[i] *= -1;
      y[i] *= -1;
      ans[i] ^= 1;
    }
  }
  sort(idx + 1, idx + n + 1,
       [](int i, int j) { return y[i] * x[j] < y[j] * x[i]; });
  long long X = x[idx[1]], Y = y[idx[1]];
  for (int i = 2; i <= n; i++) {
    int j = idx[i];
    long double mag1 = sqrtl((X - x[j]) * (X - x[j]) + (Y - y[j]) * (Y - y[j]));
    long double mag2 = sqrtl((X + x[j]) * (X + x[j]) + (Y + y[j]) * (Y + y[j]));
    if (mag1 < mag2) {
      ans[j] ^= 1;
      X = X - x[j];
      Y = Y - y[j];
    } else {
      X = X + x[j];
      Y = Y + y[j];
    }
  }
  for (int i = 1; i <= n; i++) {
    cout << (ans[i] ? -1 : 1) << " \n"[i == n];
  }
}
void precompute() {}
int main() {
  cout << fixed << setprecision(12);
  int testcase = 1;
  clock_t zzzx = clock();
  precompute();
  for (int i = 1; i <= testcase; i++) {
    solve(i);
  }
  double elapsed_time = (double)(clock() - zzzx) / CLOCKS_PER_SEC;
  cerr << "elapsed_time"
       << " = " << (elapsed_time) << "\n";
  return 0;
}
