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