#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  for (int i = 0; i < t; i++) {
    int n;
    scanf("%d", &n);
    int a[n];
    for (int j = 0; j < n; j++) scanf("%d", &a[j]);
    for (int j = 0; j < n; j++) {
      if (j % 2)
        a[j] < 0 ? a[j] = a[j] * -1 : a[j] = a[j];
      else
        a[j] > 0 ? a[j] = a[j] * -1 : a[j] = a[j];
    }
    for (int j = 0; j < n; j++) printf("%d ", a[j]);
    printf("\n");
  }
  return 0;
}
