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: 1092kB
Author: 2018212212048
In contest: 1261

#include<stdio.h>
int main(){
	int n,m,cnt,flag;
	while(scanf("%d",&n)!=EOF){
		cnt=0;
		flag=0;
		for(int i=1;i<=n;i++){
			scanf("%d",&m);
			if(m==1&&flag==0&&n!=i){
				cnt++;
			}
			else flag=1;
		}
	//	printf("%d\n",cnt);
		if(cnt%2==1) printf("L\n");
		else printf("H\n");
	}
}