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