#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int T;
  cin >> T;
  for (int i = 0; i < T; i++) {
    int n;
    cin >> n;
    vector<long long int> arr(n);
    int counter = 0;
    for (int j = 0; j < n; j++) {
      cin >> arr.at(j);
      if (counter % 2 == 0) {
        if (arr.at(j) < 0) arr.at(j) = -arr.at(j);
      } else {
        if (arr.at(j) > 0) arr.at(j) = -arr.at(j);
      }
      counter++;
    }
    for (int j = 0; j < n; j++) cout << arr.at(j) << " ";
    cout << endl;
  }
  return 0;
}
