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