#include <bits/stdc++.h>
using namespace std;
inline int setBit(int N, int pos) { return N = N | (1 << pos); }
inline int resetBit(int N, int pos) { return N = N & ~(1 << pos); }
inline bool checkBit(int N, int pos) { return (bool)(N & (1 << pos)); }
struct Vector {
  long long int x, y;
  int id;
  long long int val() { return (x * x + y * y); }
  void print() {
    cerr << 38 << ": "
         << "x"
         << " = " << x << "   "
         << "y"
         << " = " << y << '\n';
  }
};
inline double angleBetween(Vector A, Vector O, Vector B) {
  Vector t1, t2;
  t1.x = A.x - O.x;
  t1.y = A.y - O.y;
  t2.x = B.x - O.x;
  t2.y = B.y - O.y;
  double theta = (atan2(t2.y, t2.x) - atan2(t1.y, t1.x));
  if (theta < 0) theta += 2 * acos(-1.00);
  if (fabs(theta - acos(-1.00)) < 1e-7) return acos(-1.00);
  if (theta > acos(-1.00) + 1e-7) theta = 2 * acos(-1.00) - theta;
  return theta;
}
vector<Vector> V;
vector<pair<int, int> > E[1000000 + 10];
int sltn[1000000 + 10];
void dfs(int node, int state) {
  if (E[node].size() == 0) {
    sltn[node] = state;
    return;
  }
  for (auto v : E[node]) dfs(v.first, state * v.second);
}
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    V.push_back({x, y, i});
  }
  if (V.size() == 1) {
    puts("1");
    return 0;
  }
  int cnt = n;
  while (V.size() >= 3) {
    vector<Vector> tmp;
    for (int i = 0; i < 3; i++) tmp.push_back(V.back()), V.pop_back();
    bool done = 0;
    for (int i = 0; i < 3; i++) {
      for (int j = -1; j <= 1; j += 2) {
        for (int k = i + 1; k < 3; k++) {
          for (int q = -1; q <= 1; q += 2) {
            Vector A = tmp[i];
            Vector B = tmp[k];
            A.x *= j;
            A.y *= j;
            B.x *= q;
            B.y *= q;
            if (A.val() == 0 || B.val() == 0 ||
                angleBetween(A, {0, 0}, B) + 1e-7 >= 2 * acos(-1.00) / 3) {
              done = true;
              int taken[3] = {0};
              taken[i] = taken[k] = 1;
              for (int bla = 0; bla < 3; bla++) {
                if (!taken[bla]) V.push_back(tmp[bla]);
              }
              cnt++;
              Vector cur = {A.x + B.x, A.y + B.y, cnt};
              V.push_back(cur);
              assert(cur.val() <= 1e12);
              E[cnt].push_back({A.id, j});
              E[cnt].push_back({B.id, q});
              break;
            }
          }
          if (done) break;
        }
        if (done) break;
      }
      if (done) break;
    }
    assert(done);
  }
  bool done = false;
  double lim = (1.5e6) * (1.5e6);
  for (int i = -1; i < 2; i += 2) {
    for (int j = -1; j < 2; j += 2) {
      Vector A = V[0];
      Vector B = V[1];
      A.x *= i;
      A.y *= i;
      B.x *= j;
      B.y *= j;
      Vector tmp = {A.x + B.x, A.y + B.y};
      if ((tmp.x * tmp.x + tmp.y * tmp.y) <= (lim)) {
        cnt++;
        E[cnt].push_back({A.id, i});
        E[cnt].push_back({B.id, j});
        done = true;
        break;
      }
    }
    if (done) break;
  }
  dfs(cnt, 1);
  for (int i = 1; i <= n; i++) {
    if (i > 1) printf(" ");
    printf("%d", sltn[i]);
  }
  puts("");
  return 0;
}
