#include <bits/stdc++.h>
using namespace std;
long long n, x, y;
vector<pair<long long, long long>> a(112345);
vector<int> ans;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i].first >> a[i].second;
  reverse(a.begin(), a.begin() + n);
  for (int i = 0; i < n; ++i)
    if (4 * x * a[i].first + 4 * y * a[i].second > 0) {
      ans.push_back(-1);
      x -= a[i].first;
      y -= a[i].second;
    } else {
      ans.push_back(1);
      x += a[i].first;
      y += a[i].second;
    }
  reverse(ans.begin(), ans.end());
  for (auto i : ans) cout << i << " ";
}
