#include <bits/stdc++.h>
using namespace std;
long long big = 1000000007;
unsigned long long gcd(unsigned long long a, unsigned long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
string getbin(unsigned long long x) {
  if (x == 0) return "0";
  string ret = "";
  while (x != 0) {
    ret = (char)('0' + x % 2) + ret;
    x /= 2;
  }
  return ret;
}
unsigned long long getdec(string b) {
  unsigned long long ret = 0;
  for (int i = 0; i < b.size(); i += 1) {
    ret *= 2;
    ret += b[i] - '0';
  }
  return ret;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long s = 0;
    vector<int> a(n);
    for (int i = 0; i < n; i += 1) cin >> a[i], s += a[i];
    bool b = false;
    for (int i = 0; !b && i < n; i += 1) {
      if (a[i] > s / 2) b = true;
    }
    if (b)
      cout << "T";
    else if (s % 2 == 0)
      cout << "HL";
    else
      cout << "T";
    cout << '\n';
  }
  return 0;
}
