#include <bits/stdc++.h>
using namespace std;
int t, n, a[200];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    int pos = 0, neg = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (i & 1) {
        if (a[i] >= 0) a[i] = -a[i];
      } else {
        if (a[i] <= 0) a[i] = -a[i];
      }
      cout << a[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
