#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    int mx = 0, sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      mx = max(mx, arr[i]);
      sum = sum + arr[i];
    }
    if (mx * 2 > sum)
      cout << "T" << endl;
    else {
      if (sum % 2 != 0)
        cout << "T" << endl;
      else
        cout << "HL" << endl;
    }
  }
  return 0;
}
