#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<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) {
      a[i] = -1 - a[i];
    }
  }
  if (n % 2 == 1) {
    long long mini = a[0];
    long long ind = 0;
    for (long long i = 1; i < n; i++) {
      if (a[i] < mini) {
        mini = a[i];
        ind = i;
      }
    }
    a[ind] = -1 - a[ind];
  }
  for (long long i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
}
