#include <bits/stdc++.h>
using namespace std;
const int M = 1000000007;
int n, m, k, dots = 0, cou = 0;
vector<int> v;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int i, lim, q, p, mn = INT_MAX, mx = INT_MIN, j, x, y, t, sum = 0,
                              val = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    v.resize(n);
    for (i = 0; i < n; i++) cin >> v[i];
    int last_taken = -1, turn = 0;
    while (1) {
      int atleast = 0, mxind = -1;
      for (i = 0; i < n; i++) {
        if (last_taken == i || v[i] <= 0) continue;
        atleast = 1;
        if (mxind == -1 || v[i] > v[mxind]) mxind = i;
      }
      if (atleast == 0) break;
      v[mxind]--;
      last_taken = mxind;
      turn++;
    }
    cout << (turn % 2 ? "T" : "HL") << endl;
  }
}
