#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, count1 = 0, count2 = 0;
    cin >> n;
    long long int *p = new long long int[n];
    for (int i = 0; i < n; i++) {
      cin >> p[i];
      if (i % 2 == 0) {
        p[i] = abs(p[i]);
      } else {
        p[i] = -abs(p[i]);
      }
    }
    for (int i = 0; i < n; i++) {
      cout << p[i] << " ";
    }
    cout << "\n";
  }
}
