#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<long long> v(n);
    for (auto &x : v) cin >> x;
    if (n == 1) {
      cout << "T\n";
    } else {
      long long summe = 0;
      long long maxe = v[0];
      for (auto &x : v) {
        summe += x;
        maxe = max(maxe, x);
      }
      long long rest = summe - maxe;
      if (maxe > rest) {
        cout << "T\n";
      } else {
        if (summe % 2 == 0) {
          cout << "HL\n";
        } else
          cout << "T\n";
      }
    }
  }
  return 0;
}
