#include <bits/stdc++.h>
#pragma GCC optimize(3)
using namespace std;
const long long N = 110;
inline long long read() {
  long long s = 0, w = 1;
  register char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    s = (s << 3) + (s << 1) + (ch ^ 48), ch = getchar();
  return s * w;
}
long long n, a[N];
signed main() {
  for (register long long T = read(); T; T--) {
    n = read();
    long long mx = 0, sum = 0;
    for (register long long i = 1; i <= n; i++)
      a[i] = read(), mx = max(mx, a[i]), sum += a[i];
    if (mx * 2 > sum)
      puts("T");
    else
      (sum & 1) ? puts("T") : puts("HL");
  }
  return 0;
}
