#include <bits/stdc++.h>
using namespace std;
int ar[200];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    priority_queue<pair<int, int> > pq;
    for (int i = 1; i <= n; i++) {
      int a;
      cin >> a;
      pq.push(make_pair(a, i));
    }
    int turn = 0;
    int prv = -1;
    while (!pq.empty()) {
      pair<int, int> u1, u2;
      u1 = pq.top();
      pq.pop();
      if (u1.second == prv) {
        if (pq.size() == 0) break;
        u2 = pq.top();
        pq.pop();
        pq.push(u1);
        u1 = u2;
      }
      u1.first--;
      prv = u1.second;
      if (u1.first > 0) {
        pq.push(u1);
      }
      turn ^= 1;
    }
    if (!turn)
      cout << "HL"
           << "\n";
    else
      cout << "T"
           << "\n";
  }
  return 0;
}
