#include <bits/stdc++.h>
using namespace std;
int t, n;
int a[100005];
int step;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    step = 0;
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    int ok = 1, pos = -1;
    while (ok) {
      ok = 0;
      int ma = 0;
      for (int i = 1; i <= n; i++)
        if (i != pos) ma = max(ma, a[i]);
      if (ma == 0) break;
      for (int i = 1; i <= n; i++)
        if (i != pos && a[i] == ma) {
          a[i]--;
          ok = 1;
          pos = i;
          break;
        }
      step++;
    }
    if (step % 2 == 1)
      cout << "T";
    else
      cout << "HL";
    cout << "\n";
  }
}
