#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int v[n];
  int maxv = 0, maxind = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] >= 0) v[i] = -v[i] - 1;
    if (abs(v[i]) >= maxv) {
      maxv = abs(v[i]);
      maxind = i;
    }
  }
  if (n % 2 == 0) {
    for (int i = 0; i < n; i++) cout << v[i] << (i == n - 1 ? '\n' : ' ');
  } else {
    for (int i = 0; i < n; i++) {
      if (i == maxind)
        cout << -v[i] - 1;
      else
        cout << v[i];
      cout << (i == n - 1 ? '\n' : ' ');
    }
  }
  return 0;
}
