#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long a[n];
  long long mx = 0, ind;
  long long cnt = 0;
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
    if (a[i] >= 0) {
      a[i] = -a[i] - 1;
    }
    if (abs(a[i]) > mx) {
      mx = abs(a[i]);
      ind = i;
    }
    if (a[i] < 0) cnt++;
  }
  if (cnt % 2 == 1) {
    a[ind] = -a[ind] - 1;
  }
  for (long long i = 0; i < n; ++i) {
    cout << a[i] << " ";
  }
}
