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