#include <bits/stdc++.h>
using namespace std;
const long double pi = acos(-1);
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long testx;
  cin >> testx;
  while (testx--) {
    long long sum = 0;
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    if (sum & 1) {
      cout << "T"
           << "\n";
    } else {
      long long ok = 0;
      for (long long i = 0; i < n; i++) {
        if (a[i] > sum - a[i]) {
          ok = 1;
          break;
        }
      }
      if (ok) {
        cout << "T"
             << "\n";
      } else {
        cout << "HL"
             << "\n";
      }
    }
  }
}
