#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    for (long long i = 0; i < n; i++)
      if (a[i] < 0) a[i] = -1 * a[i];
    for (long long i = 1; i < n; i += 2) {
      a[i] = -1 * a[i];
    }
    for (long long i = 0; i < n; i++) {
      cout << a[i] << " ";
    }
    cout << '\n';
  }
}
