#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t-- > 0) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int a;
      cin >> a;
      if (i % 2 == 0) {
        cout << abs(a) << " ";
      } else {
        cout << -1 * abs(a) << " ";
      }
    }
    cout << endl;
  }
  return 0;
}
