#include <bits/stdc++.h>
using namespace std;
long long n, ans[100010];
struct vec {
  long long x, y, idx;
};
long long dist(long long x, long long y) { return x * x + y * y; }
pair<pair<long long, long long>, long long> a[100010];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> n;
  long long x = 0, y = 0;
  for (long long i = 0; i < n; ++i) {
    ans[i] = 1;
    cin >> a[i].first.first >> a[i].first.second;
    a[i].second = i;
  }
  do {
    x = 0;
    y = 0;
    for (long long i = 0; i < n; ++i) {
      if (dist(x + a[i].first.first, y + a[i].first.second) <
          dist(x - a[i].first.first, y - a[i].first.second)) {
        x += a[i].first.first;
        y += a[i].first.second;
        ans[a[i].second] = 1;
      } else {
        x -= a[i].first.first;
        y -= a[i].first.second;
        ans[a[i].second] = -1;
      }
    }
    if (dist(x, y) <= 1500000ll * 1500000ll) {
      for (long long i = 0; i < n; ++i) {
        cout << ans[i] << " ";
      }
      return 0;
    }
  } while (next_permutation(a, a + n));
}
