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