#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N], n;
void mian() {
  scanf("%d", &n);
  int ss = 0, mx = 0;
  for (int i = 1; i <= n; i++)
    scanf("%d", &a[i]), ss += a[i], mx = max(mx, a[i]);
  if (mx > ss / 2 || ss % 2)
    printf("T\n");
  else
    printf("HL\n");
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) mian();
}
