#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
inline int read() {
  int x = 0, w = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') w = -1;
    c = getchar();
  }
  while (c <= '9' && c >= '0') {
    x = (x << 1) + (x << 3) + c - '0';
    c = getchar();
  }
  return w == 1 ? x : -x;
}
int a[1000005];
int main() {
  int T = read();
  while (T--) {
    int n = read(), tot = 0, mx = 0;
    for (int i = 1; i <= n; i++) a[i] = read();
    for (int i = 1; i <= n; i++) tot += a[i], mx = max(mx, a[i]);
    if (2 * mx > tot)
      puts("T");
    else if (tot % 2 == 0)
      puts("HL");
    else
      puts("T");
  }
  return 0;
}
