#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 5;
const double eps = 1e-7;
pair<double, double> operator+(pair<double, double> a, pair<double, double> b) {
  return make_pair(a.first + b.first, a.second + b.second);
}
pair<double, double> operator-(pair<double, double> a, pair<double, double> b) {
  return make_pair(a.first - b.first, a.second - b.second);
}
double dist(pair<double, double> a) {
  return sqrt(a.first * a.first + a.second * a.second);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  srand(time(NULL));
  int n;
  cin >> n;
  vector<int> ans(n);
  vector<pair<pair<double, double>, int>> aa(n);
  pair<double, double> p;
  for (long long i = 0; i < (long long)n; i++) {
    cin >> aa[i].first.first >> aa[i].first.second;
    aa[i].second = i;
  }
  random_shuffle(aa.begin(), aa.end());
  for (long long i = 0; i < (long long)n; i++) {
    if (dist(p + aa[i].first) < dist(p - aa[i].first)) {
      p = p + aa[i].first;
      ans[aa[i].second] = 1;
    } else {
      p = p - aa[i].first;
      ans[aa[i].second] = -1;
    }
  }
  assert(dist(p) <= 1.5e6 + eps);
  for (long long i = 0; i < (long long)n; i++) {
    cout << ans[i] << " ";
  }
}
