#include <bits/stdc++.h>
using namespace std;
const long long P = 1e9 + 7;
const long long INF = 1e18;
const int N = 1e5 + 5;
mt19937 rng(time(0));
int T, n, x;
int main() {
  cin >> T;
  while (T--) {
    cin >> n;
    for (int i = (1); i <= (n); ++i) {
      cin >> x;
      int sign = i % 2 == 1 ? 1 : -1;
      cout << sign * abs(x) << " ";
    }
    cout << endl;
  }
  return 0;
}
