#include<iostream>
#include<cstdio>
#include<cstring>
#include<vector>
using namespace std;
vector<int> v;
int main(void){
int a, b, i, sum, start;
while(scanf("%d",&a)!=EOF){
v.clear();
sum = 0;
for(i = 0;i < a;i++){
scanf("%d",&b);
if(v.size()&&v[v.size() - 1] == 1&&b == 1){
v.pop_back();
}
else{
v.push_back(b);
}
}
if(!v.size()||v[0] == 1&&v.size() != 1){
printf("L\n");
}
else{
printf("H\n");
}
}
return 0;
}