#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
const int maxn=1010;
int a[maxn];
int main(void)
{
int n;
while(scanf("%d",&n)!=EOF)
{
int sum=0;
for(int i=1;i<=n;++i)
{
scanf("%d",&a[i]);
}
for(int i=1;i<=n;++i)
{
if(a[i]!=1){
sum=i-1;
break;
}
}
if(sum%2==0)
printf("H\n");
else
printf("L\n");
}
return 0;
}