#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
using namespace std;
const double pi =
    3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> V;
  int mn = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    scanf("%d", &a);
    if (a >= 0) {
      a = -a;
      a--;
    }
    V.push_back(a);
    mn = min(mn, a);
  }
  if (n % 2) {
    for (int i = 0; i < (n); ++i)
      if (V[i] == mn) {
        V[i] = -V[i];
        V[i]--;
        break;
      }
  }
  for (int a : V) printf("%d ", a);
  printf("\n");
  return 0;
}
