#include <bits/stdc++.h>
using namespace std;
void ___() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void data() {
  freopen("name.in", "r", stdin);
  freopen("name.out", "w", stdout);
}
const int N = 5e5 + 500;
const long long INF = 1e18;
const int mod = 1e9 + 7;
int T, n, a[N];
void solve() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  int ans = 0, lst = 0;
  while (1) {
    int kek = 1, mx = 0;
    for (int i = 1; i <= n; i++)
      if (a[i]) kek = 0;
    if (kek) break;
    for (int i = 1; i <= n; i++) {
      if (!a[i] || i == lst) {
        continue;
      }
      if (a[i] >= a[mx]) {
        mx = i;
      }
    }
    a[mx]--;
    ans ^= 1;
    lst = mx;
  }
  cout << (ans ? "T" : "HL") << "\n";
}
int main() {
  ___();
  cin >> T;
  while (T--) {
    solve();
  }
  return 0;
}
