#include <bits/stdc++.h>
using namespace std;
const long long N = 5e3 + 7;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  t = 1;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    long long x;
    for (long long i = 0; i < (n); i++) {
      cin >> x;
      x = abs(x);
      if (i & 1) {
        cout << -1 * x << " ";
      } else
        cout << x << " ";
    }
    cout << "\n";
  }
  return 0;
}
