#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, arr[100005], i;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] >= 0) {
      arr[i] = -arr[i] - 1;
    }
  }
  if (n % 2 == 0) {
    for (long long int i = 0; i < n; i++) {
      cout << arr[i] << " ";
    }
  } else {
    long long int min = 99999999;
    long long int idx = -1;
    long long int flg = 0;
    for (i = 0; i < n; i++) {
      if (min > arr[i]) {
        min = arr[i];
        idx = i;
      }
    }
    arr[idx] = -arr[idx] - 1;
    for (long long int i = 0; i < n; i++) {
      cout << arr[i] << " ";
    }
  }
  cout << "\n";
}
