#include <bits/stdc++.h>
using namespace std;
const int N = 112345;
int n;
pair<long long, long long> v[N];
int ans[N];
int main(void) {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> v[i].first >> v[i].second;
  }
  long long cx = 0, cy = 0;
  for (int i = 0; i < n; i++) {
    long long x = cx + v[i].first;
    long long y = cy + v[i].second;
    long long a1 = x * x + y * y;
    x = cx - v[i].first;
    y = cy - v[i].second;
    long long a2 = x * x + y * y;
    if (a1 < a2) {
      cx += v[i].first;
      cy += v[i].second;
      ans[i] = 1;
    } else {
      cx -= v[i].first;
      cy -= v[i].second;
      ans[i] = -1;
    }
  }
  if (cx * cx + cy * cy > 2250000000000) {
    for (int i = 0; i < n; i++) {
      long long nx = cx, ny = cy;
      if (ans[i] == 1) {
        nx -= 2 * v[i].first;
        ny -= 2 * v[i].second;
      } else {
        nx += 2 * v[i].first;
        ny += 2 * v[i].second;
      }
      if (nx * nx + ny * ny <= 2250000000000) {
        ans[i] *= -1;
        break;
      }
      if (i == n - 1) assert(false);
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
