#include <bits/stdc++.h>
using namespace std;
int main() {
  clock_t begin = clock();
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  pair<int, int> pp[n];
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 0)
      pp[i] = {a, i};
    else
      pp[i] = {-a - 1, i};
  }
  sort(pp, pp + n);
  if (n & 1) {
    pp[0].first = (-pp[0].first - 1);
  }
  vector<int> ans(n);
  for (int i = 0; i < n; i++) ans[pp[i].second] = pp[i].first;
  for (int u : ans) cout << u << " ";
  cout << endl;
  return 0;
}
