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: 2018212212127
In contest: 1261

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
using namespace std;
typedef long long ll;
const int maxn=1005;
int f[maxn];
int main(){
	int n;
	while(~scanf("%d",&n)){
		int k=0,l=0,flag=1;
		for(int i=1;i<=n;i++) {
			scanf("%d",&f[i]);
		}
		if(f[1]==1){
			k++;
			for(int j=2;j<n;j++){
				if(f[j]==1) k++;
				else break;
			}
		}
		if(k%2==0) printf("H\n");
		else printf("L\n");
	}
}