#include <bits/stdc++.h>
using namespace std;
int t, a[109], n;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    bool check = 0;
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    for (int i = 1; i <= n; i++) {
      if (a[i] > floor(sum / 2)) {
        check = 1;
        break;
      }
    }
    if (check || (!check && (sum % 2 == 1)))
      cout << "T" << endl;
    else
      cout << "HL" << endl;
  }
  return 0;
}
