#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool read(T &x) {
  x = 0;
  register char ch = getchar();
  register bool f = 0;
  while (!isdigit(ch)) {
    if (ch == EOF) return 0;
    f ^= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  if (f) x = -x;
  return 1;
}
template <class T>
inline void print(T x) {
  if (x < 0) putchar('-'), x = -x;
  if (x > 9) print(x / 10);
  putchar(x % 10 ^ 48);
}
template <class T, class... S>
inline bool read(T &x, S &...y) {
  return read(x) && read(y...);
}
template <class T>
inline void print(T x, char ch) {
  print(x);
  putchar(ch);
}
priority_queue<int> q;
int t, x, y, n;
int main() {
  int T;
  read(T);
  while (T--) {
    while (!q.empty()) q.pop();
    read(n);
    for (int i = 1; i <= n; i++) read(t), q.push(t);
    while (q.size() > 1) {
      x = q.top();
      q.pop();
      y = q.top();
      q.pop();
      if (--x) q.push(x);
      if (--y) q.push(y);
    }
    if (q.empty())
      printf("HL\n");
    else
      printf("T\n");
  }
}
