#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, h, i, j, t, m, l, r;
  long long p = 0, k, w, z, x, y;
  std::cin >> t;
  for (l = 0; l < t; l++) {
    cin >> n;
    int a[n];
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (i % 2 == 0 && a[i] <= 0)
        a[i] = 0 - a[i];
      else if (i % 2 != 0 && a[i] >= 0)
        a[i] = 0 - a[i];
    }
    for (i = 0; i < n; i++) cout << a[i] << " ";
    cout << endl;
  }
  return 0;
}
