#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using pdd = pair<double, double>;
using pil = pair<int, ll>;
int n;
int a[101];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tc;
  cin >> tc;
  while (tc--) {
    cin >> n;
    int sum = 0;
    int big = 0;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      sum += a[i];
      big = max(big, a[i]);
    }
    if (n == 1) {
      cout << "T\n";
      continue;
    }
    sum -= big;
    if (big > sum)
      cout << "T\n";
    else if ((big + sum) % 2 == 1)
      cout << "T\n";
    else
      cout << "HL\n";
  }
}
