#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e2 + 14;
int n, a[maxn];
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) cin >> a[i];
    cout << (accumulate(a, a + n, 0) % 2 ||
                     *max_element(a, a + n) * 2 > accumulate(a, a + n, 0)
                 ? "T\n"
                 : "HL\n");
  }
}
