#include <bits/stdc++.h>
using namespace std;
vector<int> adj[100001];
bool visit[100001];
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i;
  cin >> n;
  vector<int> v;
  long long x = 0, y = 0;
  long long p[100001], q[100001];
  long long a, b, c, d;
  for (long long i = 0; i < n; i += 1) cin >> p[i] >> q[i];
  for (long long j = n - 1; j >= 0; j -= 1) {
    a = p[j], b = q[j];
    if (x >= 0 && y >= 0) {
      if (a >= 0 && b >= 0)
        x -= a, y -= b, v.push_back(-1);
      else if (a <= 0 && b <= 0)
        x += a, y += b, v.push_back(1);
      else {
        c = x + a, d = y + b;
        double a1 = sqrt(c * c + d * d);
        c = x - a, d = y - b;
        double a2 = sqrt(c * c + d * d);
        if (a1 < a2)
          x += a, y += b, v.push_back(1);
        else
          x -= a, y -= b, v.push_back(-1);
      }
    } else if (x <= 0 && y <= 0) {
      if (a >= 0 && b >= 0)
        x += a, y += b, v.push_back(1);
      else if (a <= 0 && b <= 0)
        x -= a, y -= b, v.push_back(-1);
      else {
        c = x + a, d = y + b;
        double a1 = sqrt(c * c + d * d);
        c = x - a, d = y - b;
        double a2 = sqrt(c * c + d * d);
        if (a1 < a2)
          x += a, y += b, v.push_back(1);
        else
          x -= a, y -= b, v.push_back(-1);
      }
    } else {
      c = x + a, d = y + b;
      double a1 = sqrt(c * c + d * d);
      c = x - a, d = y - b;
      double a2 = sqrt(c * c + d * d);
      if (a1 < a2)
        x += a, y += b, v.push_back(1);
      else
        x -= a, y -= b, v.push_back(-1);
    }
  }
  reverse(v.begin(), v.end());
  for (long long i = 0; i < v.size(); i += 1) cout << v[i] << " ";
  return 0;
}
