#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200000;
const int MAXVAL = 2000000000;
int a, n;
void solve() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (i % 2 == 0)
      cout << -abs(a);
    else
      cout << abs(a);
    cout << " ";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
  return 0;
}
