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: 9ms
Memory: 1712kB
Author: 2018212212276
In contest: 1261

#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
	int n;
	while(cin>>n)
	{
		int sz[1010];int flag=0;
		for(int i=1;i<=n;i++)
		{
			scanf("%d",&sz[i]);
		}
		if(sz[1]==1)
		{
			flag=1;
			for(int i=2;i<=n;i++)
			{
				if(sz[i]!=1)
					break;
				flag=!flag;
			}
		}
		if(flag)
			cout<<"L"<<endl;
		else 
			cout<<"H"<<endl;
	}
	return 0;
}