#include <bits/stdc++.h>
using namespace std;
int a[200000];
int main() {
  int n, t;
  cin >> n;
  int maxn = 0;
  int flag = 0;
  for (int i = 0; i < n; i++) {
    cin >> t;
    if (t >= 0) {
      t = -t - 1;
    }
    if (abs(t) > maxn) {
      flag = i;
      maxn = abs(t);
    }
    a[i] = t;
  }
  if (n & 1) {
    a[flag] = -a[flag] - 1;
  }
  cout << a[0];
  for (int i = 1; i < n; i++) {
    cout << " " << a[i];
  }
  cout << endl;
  return 0;
}
