#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    priority_queue<long long> q;
    for (long long i = 0; i < n; ++i) {
      long long x;
      cin >> x;
      q.push(x);
    }
    bool flag = false;
    vector<long long> used;
    while (true) {
      if (not q.empty()) {
        auto x = q.top();
        q.pop();
        x--;
        for (auto e : used) q.push(e);
        used.clear();
        if (x > 0) used.push_back(x);
        flag = !flag;
      } else
        break;
    }
    if (flag)
      cout << "T"
           << "\n";
    else
      cout << "HL"
           << "\n";
  }
  return 0;
}
