#include <bits/stdc++.h>
using namespace std;
int T, n, a[110], maxn, sum;
int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return f * x;
}
int main() {
  scanf("%d", &T);
  while (T--) {
    maxn = 0, sum = 0;
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
      maxn = max(maxn, a[i]);
      sum += a[i];
    }
    if (maxn * 2 > sum)
      printf("T\n");
    else if (sum % 2)
      printf("T\n");
    else
      printf("HL\n");
  }
  return 0;
}
