#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long g = 0, m = 0;
    for (long long i = 0; i < n; i++) {
      long long u;
      cin >> u;
      g += u;
      m = max(m, u);
    }
    if (g % 2 || m * 2 > g)
      cout << "T" << endl;
    else
      cout << "HL" << endl;
  }
}
