#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> a(n);
    for (i = 0; i < n; i++) cin >> a[i];
    int sum = 0;
    for (i = 0; i < n; i++) sum += a[i];
    if (*max_element(a.begin(), a.end()) > sum / 2 || n == 1)
      cout << "T" << '\n';
    else {
      if (sum % 2 == 0)
        cout << "HL" << '\n';
      else
        cout << "T" << '\n';
    }
  }
  return 0;
}
