#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int seq[n];
  for (int i = 0; i < n; i++) {
    cin >> seq[i];
    if (seq[i] >= 0) {
      seq[i] = -seq[i] - 1;
    }
  }
  if (n % 2 == 1) {
    long long int mn = LLONG_MAX;
    long long int minind = 0;
    for (int i = 0; i < n; i++) {
      if (seq[i] < mn) {
        mn = seq[i];
        minind = i;
      }
    }
    seq[minind] = -seq[minind] - 1;
  }
  for (int i = 0; i < n; i++) {
    cout << seq[i] << " ";
  }
  cout << "\n";
}
