#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
long long n;
long long ans[N];
pair<pair<long long, long long>, long long> a[N];
long long dist(long long first, long long second) {
  return (first * first + second * second);
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  srand(time(0));
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    cin >> a[i].first.first >> a[i].first.second;
    a[i].second = i;
  }
  while (1) {
    long long curx = 0, cury = 0;
    for (long long i = 1; i <= n; i++) {
      if (dist(curx + a[i].first.first, cury + a[i].first.second) <=
          dist(curx - a[i].first.first, cury - a[i].first.second)) {
        curx += a[i].first.first;
        cury += a[i].first.second;
        ans[a[i].second] = 1;
      } else {
        curx -= a[i].first.first;
        cury -= a[i].first.second;
        ans[a[i].second] = -1;
      }
    }
    if (dist(curx, cury) <= (225 * 1e10)) break;
    random_shuffle(a + 1, a + n + 1);
  }
  for (long long i = 1; i <= n; i++) cout << ans[i] << " ";
  return 0;
}
