#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int s = 0;
  char ch = getchar();
  while (!isdigit(ch)) ch = getchar();
  while (isdigit(ch)) s = s * 10 + ch - '0', ch = getchar();
  return s;
}
const int N = 1e5 + 5;
int t;
int a[N];
int main() {
  t = read();
  while (t--) {
    int n = read(), s = 0, mx = 0;
    for (int i = 1; i <= n; i++) a[i] = read(), s += a[i], mx = max(mx, a[i]);
    if (mx * 2 <= s)
      puts((s & 1) ? "T" : "HL");
    else
      puts("T");
  }
  return 0;
}
