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