#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n + 1];
  int mn = 1e9;
  int idx = 0;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
    if (arr[i] >= 0) arr[i] = -arr[i] - 1;
    if (arr[i] < mn) {
      mn = arr[i];
      idx = i;
    }
  }
  if (n % 2) arr[idx] = -arr[idx] - 1;
  for (int i = 1; i <= n; i++) {
    cout << arr[i] << ' ';
  }
  return 0;
}
