#include <bits/stdc++.h>
using namespace std;
int N;
int arr[101010];
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    int s = 0, m = 0;
    for (int i = 0; i < N; ++i) {
      cin >> arr[i];
      s += arr[i];
      m = max(m, arr[i]);
    }
    s -= m;
    if (m > s)
      puts("T");
    else if (m <= s && m % 2 == s % 2)
      puts("HL");
    else
      puts("T");
  }
}
