#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long b) {
  long long res = 1;
  if (b == 0) return 1;
  while (b > 0) {
    if (b % 2 != 0) res = (res * x);
    b = b / 2;
    x = (x * x);
  }
  return res;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long arr[n];
    long long i, s = 0;
    for (i = 0; i < n; i++) {
      cin >> arr[i];
    }
    if (n == 1) {
      cout << "T" << endl;
      continue;
    }
    sort(arr, arr + n);
    long long mx = arr[n - 1];
    for (i = n - 2; i >= 0; i--) {
      s += arr[i];
    }
    if (s < mx) {
      cout << "T" << endl;
    } else {
      long long y = s - mx;
      if (y % 2 == 0) {
        cout << "HL" << endl;
      } else
        cout << "T" << endl;
    }
  }
}
