#include <bits/stdc++.h>
template <typename T>
using vector = std::vector<T>;
using std::cin;
using std::cout;
int arr[100005];
int n;
void printArr() {
  printf("%d", arr[0]);
  for (int i = 1; i < n; ++i) {
    printf(" %d", arr[i]);
  }
  puts("");
}
void even() {
  for (int i = 0; i < n; ++i) {
    if (arr[i] >= 0) {
      arr[i] = -arr[i] - 1;
    }
  }
  printArr();
}
void odd() {
  int mx = 1e9, at = -1e9;
  for (int i = 0; i < n; ++i) {
    if (arr[i] >= 0) {
      arr[i] = -arr[i] - 1;
    }
    if (mx > arr[i] && arr[i] != -1) {
      mx = arr[i];
      at = i;
    }
  }
  at = at < 0 ? 0 : at;
  arr[at] = -arr[at] - 1;
  printArr();
}
int main() {
  std::ios_base::sync_with_stdio(0);
  std::cin.tie(0), std::cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  if (n & 1) {
    odd();
  } else {
    even();
  }
  return true & false;
}
