#include <bits/stdc++.h>
using namespace std;
clock_t time_p = clock();
void ktj() {
  time_p = clock() - time_p;
  cerr << "Time elapsed : " << (float)(time_p) / CLOCKS_PER_SEC << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i, j, k;
  cin >> n;
  vector<long long> a(n);
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n % 2) {
    for (i = 0; i < n; i++) {
      if (a[i] >= 0) {
        a[i] = -a[i] - 1;
      }
    }
    auto mn = min_element(a.begin(), a.end());
    a[mn - a.begin()] = -a[mn - a.begin()] - 1;
    for (i = 0; i < n; i++) {
      cout << a[i] << ' ';
    }
    cout << '\n';
  } else {
    for (i = 0; i < n; i++) {
      if (a[i] >= 0)
        cout << -a[i] - 1 << ' ';
      else
        cout << a[i] << ' ';
    }
    cout << '\n';
  }
  ktj();
}
