#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    int s = 0;
    for (int i = 0; i < n; ++i) {
      cin >> a[i];
      s += a[i];
    }
    bool check = false;
    for (int i = 0; i < n; ++i) {
      if (a[i] > s / 2) {
        check = true;
        break;
      }
    }
    if (check)
      printf("T\n");
    else if (s % 2 == 0)
      printf("HL\n");
    else
      printf("T\n");
  }
  return 0;
}
