#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  unsigned short t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    unsigned long long sum = 0;
    int data[n];
    for (int x = 0; x < n; x++) {
      cin >> data[x];
      sum += data[x];
    }
    sort(data, data + n, greater<int>());
    if (n == 1) {
      cout << "T\n";
    } else {
      int cnt = 0;
      for (int x = 0; x < n; x++) {
        if (data[x] > sum / 2) {
          cnt++;
        }
      }
      if (cnt > 0) {
        cout << "T\n";
      } else {
        if (sum % 2 == 0) {
          cout << "HL\n";
        } else {
          cout << "T\n";
        }
      }
    }
  }
  return 0;
}
