#include <bits/stdc++.h>
using namespace std;
int n, a[100001], mn = 0x3f3f3f3f, ret;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", a + i);
    if (a[i] >= 0) a[i] = -a[i] - 1;
    if (a[i] < mn) ret = i, mn = a[i];
  }
  if (n & 1) a[ret] = -a[ret] - 1;
  for (int i = 1; i <= n; ++i) printf("%d ", a[i]);
}
