#include <bits/stdc++.h>
using namespace std;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    int n, c = 0;
    cin >> n;
    int a[n], s = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      s += a[i];
    }
    string w;
    for (int i = 0; i < n; i++) {
      if (a[i] > s / 2) {
        w = "T";
        c++;
        break;
      }
    }
    if (c > 0)
      cout << w << endl;
    else {
      if (s % 2 == 0) {
        cout << "HL" << endl;
      } else
        cout << "T" << endl;
    }
  }
}
