#include <bits/stdc++.h>
using namespace std;
void flash() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void solve() {
  long long n;
  cin >> n;
  vector<long long> v(n);
  long long sm = 0;
  long long mx = 0;
  for (long long i = 0; i < n; i++) {
    cin >> v[i];
    sm += v[i];
    mx = max(mx, v[i]);
  }
  function<long long(long long)> dfs = [&](long long l) -> long long {
    if (l <= 0) return 0;
    return dfs(l - 1);
  };
  long long val1 = mx;
  long long val2 = sm - mx;
  if (n == 1) {
    cout << "T"
         << "\n";
    return;
  }
  long long ok = dfs(n);
  if (ok > 5) {
    cout << "T"
         << "\n";
    return;
  }
  ok = dfs(n - 1);
  if (ok > 4) {
    cout << "HL"
         << "\n";
    return;
  }
  if (sm - n == 0) {
    if (n % 2) {
      cout << "T"
           << "\n";
      return;
    } else {
      cout << "HL"
           << "\n";
      return;
    }
  }
  if (val1 > val2) {
    cout << "T"
         << "\n";
    return;
  }
  if (sm % 2 == 0) {
    cout << "HL"
         << "\n";
    return;
  } else {
    cout << "T"
         << "\n";
    return;
  }
}
int32_t main() {
  flash();
  long long t;
  t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
