#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = (x << 1) + (x << 3) + c - '0';
    c = getchar();
  }
  return x * f;
}
int n, x[100010], y[100010], p[100010], ans[100010];
inline long long Dis(long long x, long long y) { return x * x + y * y; }
int main() {
  n = read();
  for (int i = 1; i <= n; ++i) {
    x[i] = read(), y[i] = read();
    p[i] = i;
  }
  long long nx = 0, ny = 0;
  reverse(p + 1, p + n + 1);
  for (int t = 1; t <= n; ++t) {
    int i = p[t];
    if (Dis(nx + x[i], ny + y[i]) <= Dis(nx - x[i], ny - y[i])) {
      nx += x[i], ny += y[i];
      ans[i] = 1;
    } else {
      nx -= x[i], ny -= y[i];
      ans[i] = -1;
    }
  }
  for (int i = 1; i <= n; ++i) {
    printf("%d ", ans[i]);
  }
  return 0;
}
