#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> vec(n);
    for (int i = 0; i < n; i++) cin >> vec[i];
    sort(vec.begin(), vec.end(), greater<int>());
    long long ss = 0;
    for (int i = 0; i < n; i++) {
      ss += vec[i];
    }
    int rr = ss - vec[0];
    bool ok = false;
    if (vec[0] > rr) ok = true;
    if (ss & 1LL) ok = true;
    cout << (ok ? "T" : "HL") << endl;
  }
  return 0;
}
