#include <bits/stdc++.h>
using namespace std;
long double getD(long long x, long long y) { return powl(x * x + y * y, 1.2); }
pair<pair<int, int>, int> c[100005];
int ans[1000005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  long long cx = 0, cy = 0;
  for (int i = 0; i < n; i++) {
    cin >> c[i].first.first >> c[i].first.second;
    c[i].second = i;
  }
  srand(time(NULL));
  random_shuffle(c, c + n);
  for (int i = n - 1; i >= 0; i--) {
    long double dist1 = getD(cx + c[i].first.first, cy + c[i].first.second);
    long double dist2 = getD(cx - c[i].first.first, cy - c[i].first.second);
    if (dist1 < dist2)
      cx += c[i].first.first, cy += c[i].first.second, ans[c[i].second] = 1;
    else
      cx -= c[i].first.first, cy -= c[i].first.second, ans[c[i].second] = -1;
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
