#include <bits/stdc++.h>
using namespace std;
inline void NO() { cout << "NO\n"; }
inline void YES() { cout << "YES\n"; }
inline void NEG() { cout << "-1\n"; }
template <typename T>
inline bool chkmax(T &a, T b) {
  return a < b ? a = b, true : false;
}
template <typename T>
inline bool chkmin(T &a, T b) {
  return a > b ? a = b, true : false;
}
template <typename T>
inline void read(T &val) {
  val = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    val = (val << 3) + (val << 1) + (c ^ 48);
    c = getchar();
  }
  val *= f;
}
template <typename T>
void write_(T val) {
  if (!val) return;
  write_(val / 10);
  putchar(val % 10 + 48);
}
template <typename T>
inline void write(T val) {
  if (val == 0)
    putchar(48);
  else if (val < 0) {
    putchar('-');
    write_(-val);
  } else
    write_(val);
}
const long long N = 105;
long long n, a[N];
signed main() {
  ios::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (register long long i = 1; i <= n; i++) cin >> a[i];
    long long sum = accumulate(a + 1, a + n + 1, 0);
    long long maxx = *max_element(a + 1, a + n + 1);
    if (maxx > sum / 2 || sum % 2 == 1)
      cout << "T\n";
    else
      cout << "HL\n";
  }
  return 0;
}
