#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int suma = 0;
  int maxi = a[0];
  for (int i = 0; i < n; i++) {
    suma += a[i];
    maxi = max(maxi, a[i]);
  }
  if (maxi > suma - maxi || suma & 1) {
    cout << "T\n";
  } else {
    cout << "HL\n";
  }
  return;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int t = 1;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    solve();
  }
  return 0;
}
