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