#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int no;
    cin >> no;
    long long int a[no], f = 0;
    for (long long int i = 0; i < no; i++) cin >> a[i];
    for (long long int i = 0; i < no; i++) {
      if (i % 2 != 0 && a[i] < 0) {
        a[i] = (-1) * a[i];
      }
      if (i % 2 == 0 && a[i] > 0) {
        a[i] = (-1) * a[i];
      }
    }
    for (long long int i = 0; i < no; i++) cout << a[i] << " ";
    cout << "\n";
  }
}
