#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double eps = 1e-8;
const ll mod = 1e9 + 7;
const int maxn = 2e6 + 10;
const int inf = 0x3f3f3f3f;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      int first;
      cin >> first;
      printf("%d%c", i % 2 ? -abs(first) : abs(first), i == n ? '\n' : ' ');
    }
  }
}
