#include <bits/stdc++.h>
using namespace std;
long long t, n;
long long niz[105];
long long maxi;
long long br;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> niz[i];
      maxi = max(maxi, niz[i]);
      br += niz[i];
    }
    if (maxi > (br - maxi)) {
      cout << "T\n";
    } else {
      if (br % 2 == 0) {
        cout << "HL\n";
      } else {
        cout << "T\n";
      }
    }
    maxi = 0;
    br = 0;
  }
  return 0;
}
