#include <bits/stdc++.h>
using namespace std;
int v[100 + 5];
void solver() {
  int n;
  cin >> n;
  int i, j, z;
  for (i = 1; i <= n; i++) cin >> v[i];
  int s, pin = 0, last = -1, pos;
  while (1) {
    pos = 0;
    for (i = 1; i <= n; i++)
      if (v[i] > 0 && i != last) pos++;
    if (pos == 0) {
      if (pin == 0)
        cout << "HL\n";
      else
        cout << "T\n";
      return;
    }
    s = 0;
    for (i = 1; i <= n; i++)
      if (i != last) s += v[i];
    z = -1;
    for (i = 1; i <= n; i++)
      if (v[i] > 0 && i != last && (z == -1 || v[z] < v[i])) z = i;
    v[z]--;
    last = z;
    pin ^= 1;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solver();
  return 0;
}
