#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long sum = 0;
    long long a[n];
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    sort(a, a + n);
    reverse(a, a + n);
    if (n == 1) {
      cout << "T\n";
      continue;
    }
    if (n == 2) {
      if (a[0] == a[1]) {
        cout << "HL\n";
        continue;
      } else {
        cout << "T\n";
        continue;
      }
    }
    if (a[0] > sum - a[0]) {
      cout << "T\n";
      continue;
    }
    if (sum % 2 == 0) {
      cout << "HL\n";
      continue;
    } else {
      cout << "T\n";
      continue;
    }
  }
}
