#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e17;
const double EPS = 1e-10;
const double gam = 0.5772156649015328606;
const double PI = acos(-1.0);
long long dx[] = {0, 1, 0, -1};
long long dy[] = {1, 0, -1, 0};
long long dxx[] = {1, 0, -1, 0, 1, -1, -1, 1};
long long dyy[] = {0, 1, 0, -1, 1, 1, -1, -1};
const int MOD = 1000000007;
template <typename type>
inline type gcd(type a, type b) {
  if (b)
    while ((a %= b) && (b %= a))
      ;
  return a + b;
}
template <typename type>
inline type lcm(type a, type b) {
  return a / gcd(a, b) * b;
}
inline long long binexpo(long long x, long long y, long long mod = MOD) {
  long long res = 1ll;
  while (y) {
    if (y & 1) res = ((res % mod) * (x % mod)) % mod;
    x = ((x % mod) * (x % mod)) % mod, y >>= 1;
  }
  return res;
}
template <typename istream, typename type>
inline istream &operator>>(istream &cin, vector<type> &x) {
  for (int i = 0; i < x.size(); i++) cin >> x[i];
  return cin;
}
template <typename ostream, typename type>
inline ostream &operator<<(ostream &cout, const vector<type> &x) {
  for (int i = 0; i < x.size(); i++) cout << x[i] << " \n"[i + 1 == x.size()];
  return cout;
}
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 0) a[i] = -a[i] - 1;
  }
  if (n & 1) {
    int i = min_element((a).begin(), (a).end()) - a.begin();
    a[i] = -a[i] - 1;
  }
  cout << a;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int t(1);
  while (t--) solve();
  return 0;
}
