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