#include <bits/stdc++.h>
using namespace std;
bool compareFloatingPoint(double a, double b) {
  if (abs(a - b) < 1e-9) return true;
  return false;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] >= 0) arr[i] = -arr[i] - 1;
  }
  int countNegative = 0;
  for (int i = 0; i < n; i++)
    if (arr[i] < 0) countNegative++;
  if (countNegative % 2 == 0)
    for (int i = 0; i < n; i++) cout << arr[i] << " ";
  else {
    int min = INT_MAX;
    int minIndex = 0;
    for (int i = 0; i < n; i++) {
      if (arr[i] < min) {
        min = arr[i];
        minIndex = i;
      }
    }
    arr[minIndex] = -arr[minIndex] - 1;
    for (int i = 0; i < n; i++) cout << arr[i] << " ";
  }
}
