#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long i;
    long long a[n];
    long long sum = 0;
    long long mx = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
      mx = max(mx, a[i]);
    }
    if (mx > sum - mx) {
      cout << "T"
           << "\n";
    } else {
      if (sum % 2 == 0) {
        cout << "HL"
             << "\n";
      } else {
        cout << "T"
             << "\n";
      }
    }
  }
}
