#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
using namespace std;
long long binpow(long long base, long long exp, int mo) {
  long long res = 1;
  while (exp > 0) {
    if (exp % 2 == 1) res = (res * base) % mo;
    exp = exp >> 1;
    base = (base * base) % mo;
  }
  return res;
}
long long mo(long long x) {
  return ((x % 1000000007LL + 1000000007LL) % 1000000007LL);
}
long long add(long long a, long long b) { return mo(mo(a) + mo(b)); }
long long mul(long long a, long long b) { return mo(mo(a) * mo(b)); }
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a;
    for (long long int i = 0; i < n; i++) {
      long long int x;
      cin >> x;
      a.push_back(x);
    };
    int ma = *max_element(a.begin(), a.end());
    int nums = accumulate(a.begin(), a.end(), 0);
    if (ma * 2 > nums || (nums & 1)) {
      cout << 'T' << "\n";
    } else {
      cout << "HL"
           << "\n";
    }
  }
}
