#include <bits/stdc++.h>
using namespace std;
struct debugger {
  template <typename T>
  debugger& operator,(const T& v) {
    cerr << v << " ";
    return *this;
  }
} dbg;
int main() {
  int n, x, y;
  cin >> n;
  vector<vector<int> > v;
  vector<int> g;
  for (int i = 0; i < n; i++) {
    g.clear();
    cin >> x >> y;
    g.push_back(x);
    g.push_back(y);
    g.push_back(i);
    v.push_back(g);
  }
  int ans[n];
  for (int l = 1; l <= 10; l++) {
    random_shuffle(v.begin(), v.end());
    long long p = 0;
    long long a, b;
    a = b = 0;
    for (int i = 0; i < n; i++) {
      if ((a + v[i][0]) * (a + v[i][0]) + (b + v[i][1]) * (b + v[i][1]) >
          (a - v[i][0]) * (a - v[i][0]) + (b - v[i][1]) * (b - v[i][1])) {
        ans[v[i][2]] = -1;
        a = a - v[i][0];
        b = b - v[i][1];
        p = (a) * (a) + (b) * (b);
      } else {
        ans[v[i][2]] = 1;
        a += v[i][0];
        b += v[i][1];
        p = (a) * (a) + (b) * (b);
      }
    }
    if (p <= 2250000000000LL) {
      break;
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << '\n';
  return 0;
}
