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

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<set>
#include<map>
#include<stack>
using namespace std;
const int inf = 0x3f3f3f3f;
#define LL long long int
long long  gcd(long long  a, long long  b) { return a == 0 ? b : gcd(b % a, a); }


int T;
int main()
{
	
		int n;
		while(scanf("%d",&n)!=EOF)
		{
			int tag=1;
			bool can=true;
			for(int i=1;i<=n;i++)
			{
				int x;
				scanf("%d",&x);
				if(!can)continue;
				if(x==1)tag^=1;
				else can=false;
			}
			if(tag)printf("H\n");
			else printf("L\n");
		}
		

}