#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  while (T--) {
    cin >> n;
    int mx = 0, sum = 0;
    for (int i = 0; i < (n); ++i) {
      int a;
      cin >> a;
      mx = max(mx, a);
      sum += a;
    }
    if (mx * 2 > sum) {
      cout << "T" << '\n';
    } else {
      if (sum % 2 == 0)
        cout << "HL\n";
      else
        cout << "T\n";
    }
  }
}
