#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
long long fpow(long long a, long long b) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % mod;
    b >>= 1;
    a = a * a % mod;
  }
  return ans;
}
long long gcd(long long a, long long b) { return !b ? a : gcd(b, a % b); }
long long s[100010];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    memset(a, 0, sizeof(a));
    int res = 0, tmp = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      res += a[i];
      tmp = max(tmp, a[i]);
    }
    res = res - tmp * 2;
    res++;
    res = max(0, res);
    if (res % 2 == 0) {
      printf("T\n");
    } else {
      printf("HL\n");
    }
  }
  return 0;
}
