#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long tests;
  cin >> tests;
  while (tests--) {
    long long n;
    cin >> n;
    vector<long long>(a)(n);
    for (long long i = 0; i < (n); ++i) {
      cin >> a[i];
    }
    for (long long i = 0; i < n; ++i) {
      if (i & 1) {
        a[i] = abs(a[i]);
      } else {
        a[i] = -abs(a[i]);
      }
    }
    for (auto it : (a)) cout << it << " ";
    cout << "\n";
  }
  return 0;
}
