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