#include <bits/stdc++.h>
using namespace std;
const int maxx = 105;
int main() {
  int test;
  cin >> test;
  while (test--) {
    int n, s = 0, best = 0;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      int x;
      cin >> x;
      s += x;
      best = max(best, x);
    }
    int h = s >> 1;
    if (best > h) {
      cout << "T" << endl;
    } else if (best <= h && s % 2 == 0) {
      cout << "HL" << endl;
    } else {
      cout << "T" << endl;
    }
  }
  return 0;
}
