【題目敘述】http://codeforces.com/contest/1396/problem/B
#include <iostream>
using namespace std;
int t, n, a;
int main() {
cin >> t;
while (t--){
cin >> n;
int tot = 0, mx = 0;
for (int i = 0; i < n; i++){
cin >> a;
tot += a;
mx = max(mx, a);
}
if (mx > tot/2) cout << "T\n";
else if (tot % 2) cout << "T\n";
else cout << "HL\n";
}
}