#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long s = 0;
    long long *a = new long long[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      s += a[i];
    }
    sort(a, a + n);
    if ((s / 2) < a[n - 1]) {
      cout << "T"
           << "\n";
    } else {
      if (s % 2 == 0) {
        cout << "HL"
             << "\n";
      } else {
        cout << "T"
             << "\n";
      }
    }
    delete[] a;
  }
  return 0;
}
