#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int t;
  cin >> t;
  while (t) {
    t--;
    int i, n;
    cin >> n;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      a[i] = max(a[i], -a[i]);
    }
    for (i = 1; i < n; i += 2) {
      a[i] *= -1;
    }
    for (i = 0; i < n; i++) {
      cout << a[i] << " ";
    }
    cout << endl;
  }
}
