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