#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.1415926535897932384626433;
const int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      a[i] = abs(a[i]);
    }
    for (long long i = 1; i < n; i += 2) a[i] = -a[i];
    for (auto x : a) cout << x << " ";
    cout << "\n";
  }
}
