#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
long long n, a[N];
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long T;
  cin >> T;
  while (T--) {
    cin >> n;
    for (long long i = 1, __c = n; i <= __c; ++i) cin >> a[i];
    priority_queue<long long> h;
    for (long long i = 1, __c = n; i <= __c; ++i) h.push(a[i]);
    while (h.size() > 1) {
      long long u = h.top();
      h.pop();
      long long v = h.top();
      h.pop();
      u--;
      v--;
      if (u) h.push(u);
      if (v) h.push(v);
    }
    if (h.size())
      cout << "T\n";
    else
      cout << "HL\n";
  }
}
