#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O2")
#pragma GCC target("avx,avx2,fma")
const int INF = 1e9;
const int N = 100;
int n;
int arr[N + 2];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int _T;
  cin >> _T;
  for (int _t = 1; _t <= _T; ++_t) {
    cin >> n;
    for (int i = 1; i <= n; ++i) {
      cin >> arr[i];
    }
    int mx = *max_element(arr + 1, arr + n + 1);
    int sum = accumulate(arr + 1, arr + n + 1, 0);
    if (mx * 2 > sum)
      cout << "T" << '\n';
    else if (sum % 2 == 0)
      cout << "HL" << '\n';
    else
      cout << "T" << '\n';
  }
}
