#include <bits/stdc++.h>
using namespace std;
double logn(int64_t n, int64_t base) { return log2(n) / log2(base); }
template <typename T, typename T1>
T max(T a, T1 b) {
  if (b > a) a = b;
  return a;
}
template <typename T, typename T1>
T min(T a, T1 b) {
  if (b < a) a = b;
  return a;
}
int64_t fastpow(int64_t a, int64_t b, int64_t m = (int64_t)(1e9 + 7)) {
  int64_t res = 1;
  a %= m;
  while (b > 0) {
    if (b & 1) res = (res * a) % m;
    a = (a * a) % m;
    b >>= 1;
  }
  return res;
}
void go() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
}
signed main() {
  go();
  int64_t t = 1;
  cin >> t;
  while (t--) {
    int64_t n;
    cin >> n;
    vector<int64_t> a(n);
    int64_t sum = 0;
    int64_t maxx = 0;
    for (int64_t i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
      maxx = max(maxx, a[i]);
    }
    if (maxx > sum - maxx) {
      cout << "T\n";
    } else
      cout << ((sum & 1) ? "T\n" : "HL\n");
  }
  return 0;
}
