#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
int a[10006];
int main() {
int n;
while(scanf("%d",&n)!=EOF){
for(int i=0;i<n;i++)scanf("%d",&a[i]);
int cout=0;
for(int i=0;i<n;i++){
if(a[i]==1)cout++;
else break;
}
if(n==cout){
if(n%2==0)printf("L\n");
else printf("H\n");
}
else {
if(cout%2==0)printf("H\n");
else printf("L\n");
}
}}