#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<long long> v(n);
    for (int i = 0; i < n; ++i) cin >> v[i];
    sort(v.begin(), v.end());
    long long cum = 0;
    for (int i = 0; i < n - 1; ++i) cum += v[i];
    if ((cum + v[n - 1]) % 2 == 1)
      cout << "T" << endl;
    else if (cum < v[n - 1])
      cout << "T" << endl;
    else
      cout << "HL" << endl;
  }
}
