Start: Feb, 21, 2019 12:00:00
2018-2019 ACM集训队冬季集训第二次考核
End: Feb, 21, 2019 17:00:00
Time elapsed:
Time remaining:

Problem_ID: I
Result: Accepted
Time: 7ms
Memory: 2104kB
Author: 2017212212271
In contest: 1261

#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<stdlib.h>
#include<memory.h>
#include<queue>
#include<stack>
#include<map>
#include<cmath>
#include<string.h>
using namespace std;
const int INF = 0x3f3f3f3f;
#define pi acos(-1.0)
typedef long long ll;
#define esp 1e-7
const int maxn=100000+10;
int a[maxn];
int cnt=0,cnt1=0,tmp=0;
bool flag;
int t;
void solve()
{
	flag=false;
	if(cnt1==0){

		flag=true;
		return ;
	}
	else{
	if(cnt1%2==0){
		flag=true;
		return;
	}
	else
	{
		flag=false;
		return;
	}
	}
}
int main()
{
	while(scanf("%d",&t)!=EOF){
		cnt1=0;
	for(int i=1;i<=t;i++)
	{
		scanf("%d",&a[i]);
	}
	for(int i=1;i<t;i++)
	{
		if(a[i]==1)
			cnt1++;
		else
			break;
	}
	solve();
	//printf("%d\n",cnt1);
	if(flag)
		printf("H\n");
	else
		printf("L\n");
	}
	//system("pause");
	return 0;
}
/*
3
1 2 3
2
2 1
*/