#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long int n, x, ct = 0;
  cin >> n;
  vector<long int> arr;
  for (long int i = 0; i < n; i++) {
    cin >> x;
    arr.push_back(x);
    if (arr[i] >= 0) arr[i] = -arr[i] - 1;
  }
  if (n % 2) {
    long int min = -1, ix = -1;
    for (long int i = 0; i < n; i++) {
      if ((abs(arr[i]) > min)) {
        min = abs(arr[i]);
        ix = i;
      }
    }
    arr[ix] = -arr[ix] - 1;
  }
  for (long int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << endl;
  return 0;
}
