#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  vector<long long> vv;
  int a, index = 0;
  long long maxi = (long long)-1e9;
  for (int i = 0; i < x; i++) {
    cin >> a;
    if (a >= 0) a = (-a - 1);
    if (abs(a) > maxi) {
      maxi = abs(a);
      index = i;
    }
    vv.push_back(a);
  }
  if (x % 2 != 0) {
    vv[index] = (-vv[index] - 1);
  }
  for (int i = 0; i < x; i++) cout << vv[i] << " ";
}
