#include <bits/stdc++.h>
using namespace std;
long long int n, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int T = 1;
  cin >> T;
  while (T--) {
    long long int i = 0, j = 0, k = 0, sm = 0, val = 0;
    cin >> n;
    vector<long long int> a(n);
    for (i = 0; i < n; cin >> a[i++])
      ;
    bool ok = true;
    for (i = 0; i < n; i++) {
      if (a[i] < 0) a[i] = -a[i];
      if (i & 1) a[i] = -a[i];
    }
    for (i = 0; i < n; cout << a[i++] << " ")
      ;
    cout << endl;
  }
  return 0;
}
