#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,avx")
using namespace std;
const long long md = 1e9 + 7;
const long long N = 3e5;
const long long inf = 1e18;
int main() {
  long long n, k, q;
  cin >> q;
  while (q--) {
    cin >> n;
    vector<long long> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    long long r = 0, ma = a[0];
    for (int i = 0; i < n; i++) {
      r += a[i];
      ma = max(ma, a[i]);
    }
    r -= ma;
    if (ma > r)
      cout << "T\n";
    else {
      if ((r + ma) % 2 == 1)
        cout << "T\n";
      else
        cout << "HL\n";
    }
  }
}
