#include <bits/stdc++.h>
using namespace std;
struct inst {
  int x;
  int y;
  int z;
};
inst ax[100010];
int bn[100010];
int main(void) {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d%d", &ax[i].x, &ax[i].y);
    ax[i].z = i;
  }
  while (1) {
    random_shuffle(ax, ax + n);
    long long posx = ax[0].x;
    long long posy = ax[0].y;
    bn[ax[0].z] = 1;
    for (int i = 1; i < n; i++) {
      if ((ax[i].x + posx) * (ax[i].x + posx) +
              (ax[i].y + posy) * (ax[i].y + posy) <=
          (ax[i].x - posx) * (ax[i].x - posx) +
              (ax[i].y - posy) * (ax[i].y - posy)) {
        posx += ax[i].x;
        posy += ax[i].y;
        bn[ax[i].z] = 1;
      } else {
        posx -= ax[i].x;
        posy -= ax[i].y;
        bn[ax[i].z] = -1;
      }
    }
    if (posx * posx + posy * posy <= (long long)1500000 * (long long)1500000)
      break;
  }
  for (int i = 0; i < n; i++) {
    printf("%d ", bn[i]);
  }
  printf("\n");
  return 0;
}
