#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 15;
const long long maxi = (long long)1e12, M = 2.25 * 1e12;
int ch[N][2], ret[N];
pair<long long, long long> v[N];
long long sq(long long a) { return a * a; }
long long dist(pair<long long, long long> a, pair<long long, long long> b,
               int i, int j) {
  long long R = sq(a.first * i + b.first * j) + sq(a.second * i + b.second * j);
  return R;
}
void dfs(int root) {
  if (ch[root][0] == -1) {
    return;
  }
  for (int i = 0; i < 2; ++i) {
    int a = ch[root][i];
    ret[a] *= ret[root];
    dfs(a);
  }
}
int main() {
  int n;
  long long x, y;
  scanf("%d", &n);
  if (n == 1) {
    printf("1 ");
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    scanf("%lld%lld", &v[i].first, &v[i].second);
    ch[i][0] = ch[i][1] = -1;
    ret[i] = 1;
  }
  int pos = n;
  int id[3], g = 0;
  for (int i = 0; i < n; ++i) {
    id[g++] = i;
    if (g == 3) {
      bool is = 0;
      int rem;
      for (int a = 0; a < 3 && !is; ++a) {
        for (int b = a + 1; b < 3; ++b) {
          long long D = dist(v[id[a]], v[id[b]], 1, -1);
          int q = 1, w = -1;
          if (D > 1e12) D = dist(v[id[a]], v[id[b]], 1, 1), w = 1;
          if (D <= maxi) {
            is = 1;
            ch[pos][0] = id[a];
            ch[pos][1] = id[b];
            ret[pos] = 1;
            ret[id[b]] *= w;
            v[pos] = make_pair(v[id[a]].first + v[id[b]].first * w,
                               v[id[a]].second + v[id[b]].second * w);
            id[0] = id[3 - a - b];
            id[1] = pos++;
            g = 2;
            break;
          }
        }
      }
    }
  }
  int a = id[0], b = id[1];
  long long D = dist(v[a], v[b], 1, 1);
  int w = 1;
  if (D > M) {
    w = -1;
  }
  ret[pos] = 1;
  ch[pos][0] = a, ch[pos][1] = b;
  ret[b] *= w;
  dfs(pos);
  for (int i = 0; i < n; ++i) printf("%d ", ret[i]);
  cout << endl;
  return 0;
}
