#include <bits/stdc++.h>
using namespace std;
int main() {
  FILE *inF, *outF;
  inF = fopen("in", "r");
  outF = fopen("out", "w");
  inF = stdin;
  outF = stdout;
  int t;
  fscanf(inF, "%d", &t);
  while (t--) {
    int n;
    fscanf(inF, "%d", &n);
    int sum = 0;
    multiset<int> ms;
    for (int i = 0; i < n; i++) {
      int num;
      fscanf(inF, "%d", &num);
      ms.insert(num);
      sum += num;
    }
    if (ms.lower_bound(sum / 2 + 1) != ms.end()) {
      fprintf(outF, "T\n");
    } else if (sum % 2 == 0) {
      fprintf(outF, "HL\n");
    } else {
      fprintf(outF, "T\n");
    }
  }
  return 0;
}
