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