#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long sum = 0, mx = -1e10;
    for (long long i = 0; i < n; i++) {
      long long num;
      cin >> num;
      sum += num;
      mx = max(num, mx);
    }
    bool ok = true;
    if (sum % 2)
      ok = !ok;
    else {
      sum -= mx;
      if (sum < mx) ok = !ok;
    }
    if (ok)
      cout << "HL" << endl;
    else
      cout << "T" << endl;
  }
}
