#include <bits/stdc++.h>
using namespace std;
struct aux {
  int x, y, z;
} v[1000005];
int ans[1000005];
int main() {
  srand(time(NULL));
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    int a, b;
    cin >> v[i].x >> v[i].y;
    v[i].z = i;
  }
  while (1) {
    int x = 0, y = 0;
    random_shuffle(v + 1, v + n + 1);
    for (int i = 1; i <= n; ++i) {
      int x1 = -1;
      int a = v[i].x;
      int b = v[i].y;
      if (1LL * (a + x) * (a + x) + 1LL * (b + y) * (b + y) >=
          1LL * (a - x) * (a - x) + 1LL * (b - y) * (b - y))
        x -= a, y -= b;
      else
        x += a, y += b, x1 = 1;
      ans[v[i].z] = x1;
    }
    if (1LL * x * x + 1LL * y * y <= 2250000000000LL) {
      for (int i = 1; i <= n; ++i) cout << ans[i] << ' ';
      return 0;
    }
  }
  return 0;
}
