#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const long long MX = 100;
const long long INF = 1e9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    int a;
    set<pair<int, int> > st;
    for (int i = 0; i < n; ++i) {
      cin >> a;
      st.insert({a, i});
    }
    int f = 0, pi = -1;
    while (st.size()) {
      auto it = st.end();
      --it;
      pair<int, int> p1 = (*it);
      if (p1.second == pi) {
        if (it == st.begin()) break;
        --it;
        p1 = (*it);
      }
      --p1.first;
      st.erase(it);
      if (p1.first) st.insert(p1);
      f = f ^ 1;
      pi = p1.second;
    }
    if (f)
      cout << "T\n";
    else
      cout << "HL\n";
  }
  return 0;
}
