#include <bits/stdc++.h>
using namespace std;
using pii = pair<long long, long long>;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long TC;
  cin >> TC;
  for (long long tc = 1; tc <= TC; tc++) {
    long long n;
    cin >> n;
    if (n == 1) {
      cin >> n;
      cout << "T" << '\n';
      continue;
    }
    long long A[105], sum = 0;
    for (long long i = 1; i <= n; i++) {
      long long a;
      cin >> a;
      sum += A[i] = a;
    }
    if (sum & 1) {
      cout << "T" << '\n';
      continue;
    }
    sort(A + 1, A + n + 1);
    cout << (sum - A[n] < A[n] ? "T" : "HL") << '\n';
  }
  return 0;
}
