#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    vector<long long> v(n + 1);
    for (int i = 0; i < n; ++i) {
      cin >> v[i];
    }
    for (int i = 0; i < n; ++i) {
      if (v[i] >= 0) v[i] = (v[i] * -1) - 1;
    }
    if (n % 2 == 1) {
      long long mini = 10;
      for (int i = 0; i < n; ++i) {
        if (v[i] < 0) {
          if (v[i] != -1) {
            mini = min(v[i], mini);
          }
        }
      }
      if (mini == 10) {
        for (int i = 0; i < n; ++i) {
          if (v[i] == -1) {
            v[i] = (v[i] * -1) - 1;
            break;
          }
        }
      } else {
        for (int i = 0; i < n; ++i) {
          if (v[i] == mini) {
            v[i] = (v[i] * -1) - 1;
            break;
          }
        }
      }
      for (int i = 0; i < n; ++i) {
        cout << v[i] << " ";
      }
    } else {
      for (int i = 0; i < n; ++i) {
        cout << v[i] << " ";
      }
    }
    cout << "\n";
  }
  return 0;
}
