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: 6ms
Memory: 1716kB
Author: 2017212212217
In contest: 1261

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string.h>
using namespace std;
const long long mod=1000000007;
int a[1005];
int main()
{
	int n;
	while(~scanf("%d",&n))
	{
		int num=0;
		int num1=0;
		for(int i=1;i<=n;i++)
		{
			scanf("%d",&a[i]);
		}
		for(int i=1;i<=n;i++)
		{
			if(a[i]==1)
			{
				num1++;
			}
			else
			{
				break;
			}
		}
		if(num1==n)
		{
			num1--;
		}
		if(num1%2==1)
		{
			printf("L\n");
		}
		else
		{
			printf("H\n");
		}
	}
}