#include <bits/stdc++.h>
using namespace std;
void print() {
  int n;
  cin >> n;
  int arr[n], mx = 0, sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
    mx = max(mx, arr[i]);
  }
  if (mx * 2 > sum || (sum & 1))
    cout << "T" << endl;
  else
    cout << "HL" << endl;
}
int main() {
  int t;
  cin >> t;
  while (t) {
    --t;
    print();
  }
}
