#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);
v.push_back(b);
}
for(i = 0;i < v.size() - 1;i++){
if(v[i] == 1){
sum++;
}
else{
break;
}
}
if(sum % 2){
printf("L\n");
}
else{
printf("H\n");
}
}
return 0;
}