#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
int a[(int)(1e5 + 5)];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int testn;
  cin >> testn;
  for (int casen = 1; casen <= testn; ++casen) {
    int n;
    cin >> n;
    int s = 0;
    int amax = 0;
    for (int i = 0; i < n; ++i) {
      cin >> a[i];
      s += a[i];
      amax = max(amax, a[i]);
    }
    if (n == 1 || (s - n) % 2 != n % 2 || amax > s - amax) {
      cout << "T\n";
      continue;
    }
    cout << "HL\n";
  }
  return 0;
}
