#include <bits/stdc++.h>
using namespace std;
auto solve() -> void {
  int n;
  cin >> n;
  int pos = 1;
  for (int i = 1; i <= n; ++i) {
    int a;
    cin >> a;
    if (pos)
      a = abs(a);
    else
      a = -abs(a);
    cout << a << ' ';
    pos ^= 1;
  }
  cout << '\n';
}
auto main() -> int {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int tc;
  cin >> tc;
  while (tc--) {
    solve();
  }
  return 0;
}
