#include <bits/stdc++.h>
using namespace std;
long long n, maxn, a[100050];
long long read() {
  long long s = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = (s << 1) + (s << 3) + ch - 48;
    ch = getchar();
  }
  return s * w;
}
signed main() {
  n = read();
  for (register long long i = 1; i <= n; i++)
    a[i] = read(), a[i] = a[i] >= 0 ? -a[i] - 1 : a[i],
    maxn = max(maxn, abs(a[i]));
  if (n & 1)
    for (register long long i = 1; i <= n; i++)
      if (a[i] == -maxn) {
        a[i] = -a[i] - 1;
        break;
      }
  for (register long long i = 1; i <= n; i++) cout << a[i] << " ";
  return 0;
}
