#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const int mod = (int)1e9 + 7;
const int MAXN = (int)3e5 + 5;
int n;
int arr[MAXN];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n;
  int mn = 0, mnInd = -1;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] >= 0) {
      arr[i] = -arr[i] - 1;
    }
    if (arr[i] < mn) {
      mn = arr[i];
      mnInd = i;
    }
  }
  if (n % 2) {
    arr[mnInd] = -arr[mnInd] - 1;
  }
  for (int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << '\n';
}
