#include <bits/stdc++.h>
const int N = 100005;
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int T = 1;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int temp;
      cin >> temp;
      if (i % 2 == 0) {
        if (temp < 0)
          cout << -temp << " ";
        else
          cout << temp << " ";
      } else {
        if (temp > 0)
          cout << -temp << " ";
        else
          cout << temp << " ";
      }
    }
    cout << endl;
  }
  return 0;
}
