#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> ar(n);
    int sum = 0;
    for (int i = 0; i < n; i++) cin >> ar[i], sum += ar[i];
    bool T = false;
    for (int i = 0; i < n; i++) {
      if (sum - ar[i] < ar[i]) T = true;
    }
    if (T) {
      cout << "T"
           << "\n";
      continue;
    }
    cout << (sum % 2 == 0 ? "HL" : "T") << "\n";
  }
}
