#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void c_p_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  c_p_c();
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < n; i++) {
    if (a[i] < 0) {
      continue;
    }
    a[i] = -a[i] - 1;
  }
  long long mn = LLONG_MAX;
  for (long long i = 0; i < n; i++) {
    if (a[i] >= 0) {
      continue;
    }
    mn = min(mn, a[i]);
  }
  if (n & 1) {
    for (long long i = 0; i < n; i++) {
      if (a[i] == mn) {
        a[i] = -a[i] - 1;
        break;
      }
    }
  }
  for (long long i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
  return 0;
  ;
}
