#include <bits/stdc++.h>
using namespace std;
const int N = 100000;
int n, a[N + 9];
void work() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
  sort(a + 1, a + n + 1);
  reverse(a + 1, a + n + 1);
  long long sum = 0;
  for (int i = 2; i <= n; ++i) sum += a[i];
  if (sum < a[1]) {
    puts("T");
    return;
  }
  if ((sum += a[1]) & 1)
    puts("T");
  else
    puts("HL");
}
int main() {
  int T = 1;
  scanf("%d", &T);
  for (; T--;) work();
  return 0;
}
