#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  long long tc;
  cin >> tc;
  while (tc--) {
    long long n;
    cin >> n;
    vector<long long> v;
    long long sum = 0;
    for (long long i = 1; i <= n; i++) {
      long long x;
      cin >> x;
      sum += x;
      v.push_back(x);
    }
    sort(v.rbegin(), v.rend());
    sum -= v[0];
    if (sum < v[0]) {
      cout << "T" << endl;
    } else {
      sum += v[0];
      if (sum % 2 == 1) {
        cout << "T" << endl;
      } else
        cout << "HL" << endl;
    }
  }
}
