#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  vector<tuple<long long, long long, int> > v(n);
  vector<int> ans(n);
  for (int i = 0; i < n; ++i) {
    long long a, b;
    cin >> a >> b;
    v[i] = make_tuple(a, b, i);
  }
  long long safe = 1500000ll * 1500000ll;
  while (1) {
    random_shuffle((v).begin(), (v).end());
    long long x = 0, y = 0;
    for (int(i) = (0); (i) < (n); ++(i)) {
      long long vx = get<0>(v[i]), vy = get<1>(v[i]);
      if ((x + vx) * (x + vx) + (y + vy) * (y + vy) >
          (x - vx) * (x - vx) + (y - vy) * (y - vy)) {
        ans[get<2>(v[i])] = -1;
        x -= vx;
        y -= vy;
      } else {
        ans[get<2>(v[i])] = 1;
        x += vx;
        y += vy;
      }
    }
    if (x * x + y * y < safe) {
      for (const auto& k : ans) cout << k << " ";
      cout << endl;
      return 0;
    }
  }
}
