#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5;
int n, now;
int c[maxn * 2 + 5];
vector<int> g[maxn * 2 + 5];
pair<int, int> p[maxn * 2 + 5];
queue<int> q;
pair<int, int> operator+(pair<int, int> x, pair<int, int> y) {
  return make_pair(x.first + y.first, x.second + y.second);
}
pair<int, int> operator-(pair<int, int> x, pair<int, int> y) {
  return make_pair(x.first - y.first, x.second - y.second);
}
bool check(pair<int, int> x) {
  long long ans = 1LL * x.first * x.first + 1LL * x.second * x.second;
  return ans <= 1000000000000LL;
}
pair<int, int> cal(int a, int b) {
  if (check(p[a] + p[b])) {
    pair<int, int> ans = p[a] + p[b];
    g[now].push_back(a), g[now].push_back(b);
    return ans;
  }
  if (check(p[a] - p[b])) {
    pair<int, int> ans = p[a] - p[b];
    g[now].push_back(a), g[now].push_back(b);
    c[b] = 1;
    return ans;
  }
  return make_pair(-1, -1);
}
void dfs(int k, int now) {
  now ^= c[k];
  c[k] = now;
  for (auto x : g[k]) dfs(x, now);
}
int main() {
  scanf("%d", &n);
  if (n == 1) {
    for (int i = 1; i <= n; ++i) printf("1 ");
    return 0;
  }
  for (int i = 1; i <= n; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    p[i] = make_pair(x, y);
    q.push(i);
  }
  now = n;
  while (q.size() >= 3) {
    int a = q.front();
    q.pop();
    int b = q.front();
    q.pop();
    int c = q.front();
    q.pop();
    ++now;
    pair<int, int> ans = cal(a, b);
    if (ans != make_pair(-1, -1))
      q.push(c);
    else {
      ans = cal(a, c);
      if (ans != make_pair(-1, -1))
        q.push(b);
      else {
        ans = cal(b, c);
        q.push(a);
      }
    }
    p[now] = ans;
    q.push(now);
  }
  int a = q.front();
  q.pop();
  int b = q.front();
  q.pop();
  ++now;
  g[now].push_back(a), g[now].push_back(b);
  if (!check(p[a] + p[b])) c[b] = 1;
  dfs(now, 0);
  for (int i = 1; i <= n; ++i)
    if (!c[i])
      printf("1 ");
    else
      printf("-1 ");
  return 0;
}
