#include <bits/stdc++.h>
using namespace std;
char _;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> vals(n);
    for (int i = 0; i < n; i++) cin >> vals[i];
    bool first = true;
    int last = -1;
    while (true) {
      int largest = -1;
      int index = -1;
      for (int i = 0; i < n; i++) {
        if (vals[i] > 0 && vals[i] > largest && i != last) {
          largest = vals[i];
          index = i;
        }
      }
      if (index == -1) break;
      last = index;
      vals[index]--;
      first = !first;
    }
    if (!first) {
      cout << "T" << endl;
    } else {
      cout << "HL" << endl;
    }
  }
  return 0;
}
