#include <bits/stdc++.h>
using namespace std;
ostream& operator<<(ostream& os, const pair<int, int>& pai) {
  os << pai.first << ' ' << pai.second;
  return os;
}
istream& operator>>(istream& is, pair<int, int>& pai) {
  is >> pai.first >> pai.second;
  return is;
}
int n;
pair<long long, long long> ret;
pair<int, int> arr[100001];
int ans[100001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = n - 1; i >= 0; i--) {
    pair<int, int> t = arr[i];
    long long nx1 = ret.first + t.first, ny1 = ret.second + t.second;
    long long nx2 = ret.first - t.first, ny2 = ret.second - t.second;
    long long d1 = nx1 * nx1 + ny1 * ny1, d2 = nx2 * nx2 + ny2 * ny2;
    if (d1 <= d2) {
      ans[i] = 1;
      ret = {nx1, ny1};
    } else {
      ans[i] = -1;
      ret = {nx2, ny2};
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << ' ';
  return 0;
}
