#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::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> ar(n);
    for (int i = 0; i < n; i++) {
      cin >> ar[i];
      ar[i] = abs(ar[i]);
      if (i % 2)
        cout << -ar[i] << " ";
      else
        cout << ar[i] << " ";
    }
    cout << "\n";
  }
}
