#include <bits/stdc++.h>
using namespace std;
int ar[101];
int n;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) cin >> ar[i], ar[i] = abs(ar[i]);
    for (int i = 0; i < n; i++) {
      if (i % 2)
        cout << ar[i] << " ";
      else
        cout << -ar[i] << " ";
    }
    cout << '\n';
  }
  return 0;
}
