#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
long long mx_error = 15 * 1e5;
struct delta {
  int idx;
  long long dx, dy;
  bool operator<(const delta& other) const {
    return dx * dx + dy * dy < other.dx * other.dx + other.dy + other.dy;
  }
};
long long sgn(long long x) {
  if (x >= 0) return 1;
  return -1;
}
int get_q(long long x, long long y) {
  int dir_x = 0;
  int dir_y = 0;
  if (sgn(x) == -1) dir_x = 1;
  if (sgn(y) == -1) dir_y = 1;
  int res = 0;
  res |= (dir_x);
  res |= (dir_y << 1);
  return res;
}
long long not_good_error(long long x, long long y) {
  if (x > mx_error || y > mx_error) return true;
  return x * x + y * y > mx_error * mx_error;
}
bool cmp_x(delta a, delta b) { return a.dx > b.dx; }
bool cmp_y(delta a, delta b) { return a.dy > b.dy; }
int ans[100009];
int main() {
  long long px = 0, py = 0;
  int n;
  scanf("%d", &n);
  vector<delta> vx_pos;
  vector<delta> vx_neg;
  vector<delta> vy_pos;
  vector<delta> vy_neg;
  for (int i = 0; i < n; i++) {
    int dx, dy;
    scanf("%d %d", &dx, &dy);
    px += dx;
    py += dy;
    ans[i] = 1;
    if (dx >= 0)
      vx_pos.push_back({i, dx, dy});
    else
      vx_neg.push_back({i, dx, dy});
    if (dy >= 0)
      vy_pos.push_back({i, dx, dy});
    else
      vy_neg.push_back({i, dx, dy});
  }
  sort(vx_pos.begin(), vx_pos.end(), cmp_x);
  sort(vx_neg.begin(), vx_neg.end(), cmp_x);
  sort(vy_pos.begin(), vy_pos.end(), cmp_y);
  sort(vy_pos.begin(), vy_pos.end(), cmp_y);
  int i_pos = 0;
  int i_neg = (int)vx_neg.size() - 1;
  int j_pos = 0;
  int j_neg = (int)vy_neg.size() - 1;
  while (not_good_error(px, py)) {
    delta d;
    if (abs(px) >= abs(py)) {
      if (px >= 0) {
        while (ans[vx_pos[i_pos].idx] == -1) i_pos++;
        d = vx_pos[i_pos];
      } else {
        while (ans[vx_neg[i_neg].idx] == -1) i_neg--;
        d = vx_neg[i_neg];
      }
    } else {
      if (py >= 0) {
        while (ans[vy_pos[j_pos].idx] == -1) j_pos++;
        d = vy_pos[j_pos];
      } else {
        while (ans[vy_neg[j_neg].idx] == -1) j_neg--;
        d = vy_neg[j_neg];
      }
    }
    px -= 2 * d.dx;
    py -= 2 * d.dy;
    ans[d.idx] = -1;
  }
  for (int i = 0; i < n; i++) printf("%d%c", ans[i], " \n"[i == n - 1]);
}
