#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int f = 1, res = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    res = res * 10 + c - '0', c = getchar();
  }
  return f * res;
}
int n, a[101], t;
int main() {
  t = read();
  while (t--) {
    n = read();
    for (int i = 1; i <= n; i++) a[i] = read();
    sort(a + 1, a + n + 1);
    int sum = 0;
    for (int i = 1; i < n; i++) sum += a[i];
    if (sum < a[n])
      printf("T\n");
    else {
      sum += a[n];
      if (sum & 1)
        printf("T\n");
      else
        printf("HL\n");
    }
  }
  return 0;
}
