#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  vector<long long int> arr(n);
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  int flag = 0;
  for (long long int i = 0; i < n; i++) {
    if (flag == 0) {
      arr[i] = (-1 * abs(arr[i]));
      flag = 1;
    } else {
      arr[i] = abs(arr[i]);
      flag = 0;
    }
  }
  for (long long int i = 0; i < n; i++) cout << arr[i] << " ";
  cout << endl;
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
