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