#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
const long long int N = 2 * (1e5);
const long long int maxo = 1e14;
const long long int inf = 1e17;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t-- > 0) {
    int n;
    cin >> n;
    int a[n];
    int sum = 0;
    bool al = false;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    sum = accumulate(a, a + n, 0);
    int s = sum;
    sum /= 2;
    for (int i = 0; i < n; i++) {
      if (a[i] > sum) al = true;
    }
    if (al || s % 2) {
      cout << "T" << endl;
    } else
      cout << "HL" << endl;
  }
}
