#include <bits/stdc++.h>
using namespace std;
string str, str1, str2, str3;
map<long long, long long> mp;
long long i, j, k, m, n, o, p, q, r, s, t, x, y, z, res, ans;
int main() {
  for (scanf("%lld", &(t)); t-- and scanf("%lld", &(n)); y = ans = 0) {
    while (n-- and scanf("%lld", &(x))) y = max(y, x), ans += x;
    printf(ans < 2 * y ? "T" : ans & 1 ? "T" : "HL");
    putchar('\n');
  }
}
