#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int T, n;
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    int s = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]), s += a[i];
    }
    bool flag = 0;
    for (int i = 1; i <= n; i++) {
      if (a[i] - 1 >= s - a[i]) flag = 1;
    }
    if (flag)
      printf("T\n");
    else if (s & 1)
      printf("T\n");
    else
      printf("HL\n");
  }
  return 0;
}
