#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
const long long mod = 1e9 + 7;
const int maxn = 1e6 + 5;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
struct coord {
  long long i, x, y;
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<coord> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i].x >> v[i].y;
    v[i].i = i;
  }
  while (true) {
    shuffle(v.begin(), v.end(), rng);
    long long x = 0, y = 0;
    vector<int> res(n);
    for (auto co : v) {
      long long x1 = x + co.x;
      long long y1 = y + co.y;
      long long x2 = x - co.x;
      long long y2 = y - co.y;
      if (x1 * x1 + y1 * y1 < x2 * x2 + y2 * y2) {
        res[co.i] = +1;
        x = x1;
        y = y1;
      } else {
        res[co.i] = -1;
        x = x2;
        y = y2;
      }
    }
    const long long dist = 1.5e6;
    if (x * x + y * y <= dist * dist) {
      for (int i : res) cout << i << " ";
      cout << endl;
      return 0;
    }
  }
  assert(0);
  return 0;
}
