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: 1712kB
Author: 2018212212307
In contest: 1261

#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int maxn=1e3+5;
int n;
int main()
{
	while(cin>>n)
	{
		if(n==0)
		{
			printf("L\n");
			continue;
		}
		int p=0;
		ll a;
		for(int i=1;i<=n;i++)
		{
			cin>>a;
			if(p==0&&a!=1)
			{
				p=i;
			}
		}
		if(p==0)
		{
			if(n&1)printf("H\n");
			else printf("L\n");
			continue;
		}
		if(p&1)printf("H\n");
		else printf("L\n");
	}
}