#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tc;
  cin >> tc;
  while (tc--) {
    int n;
    cin >> n;
    priority_queue<pair<int, int> > pq;
    for (int i = 0; i < n; i++) {
      int ai;
      cin >> ai;
      pq.push(pair<int, int>(ai, i));
    }
    int turn = 0;
    while (not pq.empty()) {
      auto pp = pq.top();
      pq.pop();
      turn = 1 - turn;
      if (pq.empty()) break;
      auto qq = pq.top();
      pq.pop();
      turn = 1 - turn;
      pp.first -= 1;
      qq.first -= 1;
      if (pp.first != 0) pq.push(pp);
      if (qq.first != 0) pq.push(qq);
    }
    if (turn == 0)
      cout << "HL\n";
    else
      cout << "T\n";
  }
  return (0);
}
