#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  int d;
  cin >> d;
  while (d--) {
    int n;
    cin >> n;
    int arr[n];
    int sum = 0;
    int maxt = 0;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      sum += arr[i];
      maxt = max(maxt, arr[i]);
    }
    if (floor(sum / 2) < maxt) {
      cout << "T" << endl;
      continue;
    }
    if (floor(sum / 2) >= maxt && sum % 2 == 0) {
      cout << "HL" << endl;
      continue;
    } else {
      cout << "T" << endl;
      continue;
    }
  }
  return 0;
}
