#include <bits/stdc++.h>
using namespace std;
long long n;
long long a[100006];
bool b[100005];
long long ans[100005];
int main() {
  ios::sync_with_stdio(0);
  cin >> n;
  long long s1 = 0;
  long long s2 = 0;
  vector<pair<long long, long long> > v1, v2, v3;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 0) {
      v1.push_back({(a[i] * -1) - 1, i});
    } else {
      v1.push_back({a[i], i});
    }
  }
  sort(v1.begin(), v1.end());
  if (n % 2 == 1) {
    int idx = v1[0].second;
    for (int i = 0; i < n; i++) {
      int id = v1[i].second;
      if (id == idx) {
        ans[id] = (v1[i].first * -1) - 1;
      } else {
        ans[id] = v1[i].first;
      }
    }
    for (int i = 0; i < n; i++) {
      cout << ans[i] << " ";
    }
  } else {
    for (int i = 0; i < n; i++) {
      int id = v1[i].second;
      { ans[id] = v1[i].first; }
    }
    for (int i = 0; i < n; i++) {
      cout << ans[i] << " ";
    }
  }
  return 0;
}
