#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  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];
    }
    long long b[n];
    for (long long i = 0; i < n; i++) {
      if (i % 2) {
        if (a[i] >= 0)
          b[i] = a[i];
        else
          b[i] = -a[i];
      } else {
        if (a[i] <= 0)
          b[i] = a[i];
        else
          b[i] = -a[i];
      }
      cout << b[i] << " ";
    }
    cout << "\n";
  }
  return 0;
}
