#include <bits/stdc++.h>
using namespace std;
const signed inf = 1000000100;
const long long inf64 = 1ll * inf * inf;
const long long mod = 1e9 + 7;
mt19937 rng(0);
void run() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (auto &i : a) cin >> i;
  vector<long long> b(n);
  long long cnt1 = 0, cnt2 = 0;
  for (long long i = 0; i < n; ++i) {
    if (i % 2)
      b[i] = abs(a[i]);
    else
      b[i] = -abs(a[i]);
  }
  for (auto &i : b) cout << i << ' ';
  cout << '\n';
}
signed main() {
  iostream::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) {
    run();
    cout.flush();
  }
}
