#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const double eps = 1e-10;
const long long inf = 0x3f3f3f3f3f3f3f3fLL;
const long long N = 2e5 + 5;
const long long MOD = 1e9 + 7;
long long pw(long long b, long long p) {
  long long res = 1;
  while (p > 0) {
    if (p & 1) res = res * b;
    b = b * b;
    p >>= 1;
  }
  return res;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long> a(n);
    long long sum = 0, mx = 0;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
      mx = max(mx, a[i]);
    }
    if (mx > sum - mx) {
      cout << "T" << '\n';
      continue;
    }
    if (sum & 1)
      cout << "T" << '\n';
    else
      cout << "HL" << '\n';
  }
  return 0;
}
