#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n], k = 1;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      arr[i] = abs(arr[i]) * k;
      k *= -1;
    }
    for (int i = 0; i < n; i++) cout << arr[i] << " ";
    cout << endl;
  }
  return 0;
}
