#include <bits/stdc++.h>
using namespace std;
long long a[105];
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    multiset<long long> ms;
    for (long long i = 1; i <= n; i++) {
      cin >> a[i];
      ms.insert(a[i]);
    }
    if (n == 2) {
      if (a[1] == a[2])
        cout << "HL\n";
      else
        cout << "T\n";
      continue;
    }
    long long turn = 0, last = 0;
    while (((long long)ms.size())) {
      long long temp = *ms.rbegin();
      ms.erase(ms.find(temp));
      if (last) ms.insert(last);
      last = temp - 1;
      turn ^= 1;
    }
    if (turn)
      cout << "T\n";
    else
      cout << "HL\n";
  }
}
