#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const int maxn = 1e5 + 5;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, sum, mx;
    sum = 0;
    mx = -1;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      mx = max(mx, x);
      sum += x;
    }
    if (mx > (sum - mx))
      cout << "T" << endl;
    else if (sum % 2)
      cout << "T" << endl;
    else
      cout << "HL" << endl;
  }
  return 0;
}
