#include <bits/stdc++.h>
using namespace std;
long long n, m, z, x, s, a[301];
bool f(long long x, long long y) {
  if (x > 0 && y > 0 && x <= n && y <= m)
    return true;
  else
    return false;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      a[i] = abs(a[i]);
    }
    for (int i = 1; i <= n; i += 2) a[i] = -a[i];
    for (int i = 1; i <= n; i++) cout << a[i] << " ";
    cout << "\n";
  }
}
