#include <bits/stdc++.h>
using namespace std;
bool func(pair<int, int> p, pair<int, int> q) { return p.second < q.second; }
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i].first;
    arr[i].second = i;
    if (arr[i].first >= 0) {
      arr[i].first = -(arr[i].first + 1);
    }
  }
  sort(arr.begin(), arr.end());
  if (n % 2) {
    arr[0].first = -(arr[0].first + 1);
  }
  sort(arr.begin(), arr.end(), func);
  for (int i = 0; i < n; i++) {
    cout << arr[i].first << " ";
  }
  return 0;
}
