#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
const long long MAX = INT_MAX;
const long long inf = 1e18 + 5;
const double pi = 3.14159265358979323846;
long long dirX[] = {1, -1, 0, 0};
long long dirY[] = {0, 0, 1, -1};
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long A[n];
    for (long long i = 0; i < n; i++) cin >> A[i];
    long long moves = 0;
    long long prev = -1;
    while (1) {
      long long index = -1, high = -1;
      for (long long i = 0; i < n; i++) {
        if (i == prev) continue;
        if (A[i] == 0) continue;
        if (A[i] > high) {
          high = A[i];
          index = i;
        }
      }
      if (index != -1) {
        A[index]--;
        prev = index;
        moves++;
      } else {
        break;
      }
    }
    if (moves & 1) {
      cout << "T"
           << "\n";
    } else {
      cout << "HL"
           << "\n";
    }
  }
  return 0;
}
