#include <bits/stdc++.h>
using LL = long long;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int cas;
  std::cin >> cas;
  while (cas--) {
    int n;
    std::cin >> n;
    std::vector<int> a(n);
    int s = 0;
    for (auto &x : a) {
      std::cin >> x;
      s += x;
    }
    int mx = *std::max_element(a.begin(), a.end());
    if (n == 1 || (s & 1) || s < 2 * mx) {
      std::cout << "T\n";
    } else
      std::cout << "HL\n";
  }
  return 0;
}
