#include <bits/stdc++.h>
using namespace std;
string mirror = "AHIMOTUVWXY";
void tazim() {
  long long n, m, i, j, k, x, y, q;
  vector<pair<long long, long long>> v;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> x;
    if (x < 0) x = -x - 1;
    v.push_back({x, i});
  }
  sort(v.begin(), v.end());
  for (i = 0; i < n - n % 2; i++) {
    v[i].first = -v[i].first - 1;
  }
  long long a[n + 5];
  for (i = 0; i < n; i++) a[v[i].second] = v[i].first;
  for (i = 0; i < n; i++) cout << a[i] << " ";
  cout << endl;
}
int main() {
  long long t;
  tazim();
}
