#include <bits/stdc++.h>
using namespace std;
void sol() {
  int n;
  cin >> n;
  multiset<int> m;
  for (int i = 0; i < n; i++) {
    int val;
    cin >> val;
    m.insert(val);
  }
  bool t = 0;
  int f[] = {1, 1};
  while (true) {
    if (*(m.rbegin()) == 0) {
      if (t == false) {
        cout << "HL" << endl;
        return;
      } else {
        cout << "T" << endl;
        return;
      }
    } else {
      t = !t;
      f[t] = *(m.rbegin());
      m.erase(--m.end());
      m.insert(f[t ^ 1] - 1);
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    sol();
  }
}
