#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, min = INT_MAX, pos_min;
  cin >> n;
  vector<int> inp(n);
  for (int i = 0; i < n; i++) cin >> inp[i];
  if (n % 2 == 0) {
    for (int i = 0; i < n; i++) {
      if (inp[i] >= 0) inp[i] = (inp[i] * (-1)) - 1;
    }
  } else {
    for (int i = 0; i < n; i++) {
      if (inp[i] >= 0) inp[i] = (inp[i] * (-1)) - 1;
      if (inp[i] < min) {
        min = inp[i];
        pos_min = i;
      }
    }
    inp[pos_min] = (inp[pos_min] * -1) - 1;
  }
  for (int i = 0; i < n; i++) cout << inp[i] << " ";
  return 0;
}
