#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long t;
  cin >> t;
  for (long long _i = 0; _i < t; _i++) {
    long long n, sm = 0;
    cin >> n;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      sm += a[i];
    }
    bool check = false;
    for (long long i = 0; i < n; i++) {
      if (a[i] > sm / 2) {
        check = true;
      }
    }
    if (check || sm % 2 == 1) {
      cout << "T" << endl;
    } else {
      cout << "HL" << endl;
    }
  }
}
