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

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