#include <bits/stdc++.h>
using namespace std;
const long long ll_inf = 9223372036854775807;
const int int_inf = 2147483647;
const short short_inf = 32767;
const long long less_inf = 0x3f3f3f3f;
const char char_inf = 127;
#pragma GCC optimize(2)
#pragma warning(disable : 6385)
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
inline long long read() {
  long long c = getchar(), Nig = 1, x = 0;
  while (!isdigit(c) && c != '-') c = getchar();
  if (c == '-') Nig = -1, c = getchar();
  while (isdigit(c)) x = ((x << 1) + (x << 3)) + (c ^ '0'), c = getchar();
  return Nig * x;
}
inline void out(long long a) {
  if (a < 0) putchar('-'), a = -a;
  if (a > 9) out(a / 10);
  putchar(a % 10 + '0');
}
long long qpow(long long x, long long n, long long mod) {
  long long res = 1;
  while (n > 0) {
    if (n & 1) res = (res * x) % mod;
    x = (x * x) % mod;
    n >>= 1;
  }
  return res;
}
const long long N = 1e9 + 7;
int main() {
  int T = read();
  while (T--) {
    long long n = read();
    long long maxn = -1;
    long long tot = 0;
    for (int i = 0; i < n; i++) {
      long long temp = read();
      maxn = max(temp, maxn);
      tot += temp;
    }
    if (maxn > tot >> 1) {
      cout << "T" << endl;
    } else {
      if (tot & 1)
        cout << "T" << endl;
      else
        cout << "HL" << endl;
    }
  }
}
