#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O2")
int tot, mx;
int t, n, a[101];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  cin >> t;
  while (t--) {
    tot = mx = 0;
    cin >> n;
    for (long long i = (1); i < (n + 1); i++) {
      cin >> a[i];
      tot += a[i];
      mx = max(mx, a[i]);
    }
    if (mx > tot - mx)
      cout << "T\n";
    else {
      if ((tot - n + n) % 2)
        cout << "T\n";
      else
        cout << "HL\n";
    }
  }
  return 0;
}
