#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<long long int> arr(n);
    for (auto &i : arr) cin >> i;
    for (long long int i = 0; i < n; i++) {
      if (i & 1) {
        arr[i] = -1 * abs(arr[i]);
      } else
        arr[i] = abs(arr[i]);
    }
    for (auto i : arr) cout << i << " ";
    cout << endl;
  }
}
