#include <bits/stdc++.h>
using namespace std;
int main() {
  int j = 0;
  int t = 0;
  int a;
  cin >> a;
  int arr[a];
  for (int x = 0; x < a; x++) {
    cin >> arr[x];
    if (arr[x] >= 0) arr[x] = (-1) * arr[x] - 1;
    if (arr[x] < t) {
      t = arr[x];
      j = x;
    }
  }
  if (a % 2 == 1) {
    arr[j] = (-1) * arr[j] - 1;
  }
  for (int x = 0; x < a; x++) {
    cout << arr[x] << " ";
  }
}
