#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  int T;
  scanf("%d", &T);
  bool ok = false;
  for (int mkn = 0; mkn < T; mkn++) {
    cin >> n;
    vector<int> a;
    for (int i = 0; i < n; i++) {
      int p;
      cin >> p;
      if (p < 0) p = abs(p);
      a.push_back(p);
    }
    for (int i = 0; i < n; i++) {
      bool y = 0;
      if (i % 2 == 1) {
        cout << a[i] * (-1) << " ";
        y = 1;
      } else
        cout << a[i] << " ";
    }
    cout << '\n';
  }
  ok = true;
  char vof;
  return 0;
}
