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