#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> v;
  vector<pair<long long, long long> > g;
  long long cont = 0;
  long long cont1 = 0;
  long long cont2 = 0;
  for (int i = 0; i < n; i++) {
    long long num;
    cin >> num;
    if (num >= 0) {
      num = -num - 1;
    }
    v.push_back(num);
  }
  if (n & 1) {
    long long aux1 = 1LL << 62, aux2 = -1;
    for (int i = 0; i < n; i++) {
      if (v[i] != -1 && v[i] < aux1) {
        aux1 = v[i];
        aux2 = i;
      }
    }
    if (aux2 == -1) {
      for (int i = 0; i < n; i++) {
        cout << 0 << " ";
      }
      return 0;
    } else {
      v[aux2] = -v[aux2] - 1;
      for (int i = 0; i < n; i++) {
        cout << v[i] << " ";
      }
      return 0;
    }
  } else {
    for (int i = 0; i < n; i++) {
      cout << v[i] << " ";
    }
    return 0;
  }
}
