#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  long long sum = accumulate(a.begin(), a.end(), 0);
  if (a.back() + a.back() > sum) {
    cout << "T"
         << "\n";
  } else {
    if (sum % 2 == 1) {
      cout << "T"
           << "\n";
    } else {
      cout << "HL"
           << "\n";
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  long long tt;
  cin >> tt;
  while (tt--) {
    solve();
  }
  return 0;
}
