#include <bits/stdc++.h>
#pragma GCC optimize("O3")
const int INF = 1e9;
const int MOD = 1e9 + 7;
const int N = 1e5;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  while (q--) {
    int n, a[100005], ko = 0, kp = 0;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (i % 2)
        a[i] = abs(a[i]);
      else
        a[i] = -abs(a[i]);
    }
    for (int i = 1; i <= n; i++) {
      cout << a[i] << " ";
    }
    cout << "\n";
  }
  return 0;
}
