#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10, mod = 1e9 + 7, inf = 1e9 + 10;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie();
  int q;
  cin >> q;
  while (q--) {
    int n;
    int mx = 0, sm = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      sm += x;
      mx = max(mx, x);
    }
    cout << ((2 * mx <= sm && (sm % 2 == 0)) ? "HL\n" : "T\n");
  }
  return 0;
}
