#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
ostream& operator<<(ostream& cout, pair<A, B> const& p) {
  return cout << "(" << p.first << ", " << p.second << ")";
}
template <typename A>
ostream& operator<<(ostream& cout, vector<A> const& v) {
  cout << "[";
  for (int i = 0; i < v.size(); i++) {
    if (i) cout << ", ";
    cout << v[i];
  }
  return cout << "]";
}
void fast_io() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
void file_io(string taskname) {
  string fin = taskname + ".in";
  string fout = taskname + ".out";
  const char* FIN = fin.c_str();
  const char* FOUT = fout.c_str();
  freopen(FIN, "r", stdin);
  freopen(FOUT, "w", stdout);
  fast_io();
}
int main() {
  fast_io();
  int t;
  cin >> t;
  for (int ti = 0; ti < (t); ti++) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < (n); i++) {
      cin >> v[i];
    }
    sort(v.begin(), v.end());
    long long tot = 0;
    for (int i = 0; i < (n); i++) {
      tot += v[i];
    }
    if (tot % 2 == 1) {
      cout << "T\n";
    } else if (v[n - 1] * 2 > tot) {
      cout << "T\n";
    } else {
      cout << "HL\n";
    }
  }
}
