#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    int v[1000];
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> v[i];
      v[i] = abs(v[i]);
    }
    int signo = 1;
    for (int i = 0; i < n - 1; i++) {
      cout << v[i] * signo << " ";
      signo *= -1;
    }
    cout << v[n - 1] * signo << endl;
  }
  return 0;
}
