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

#include<stdio.h>
int main() {
	int n,i;
	while(~scanf("%d",&n)) {
		int sum=0,p[1050];
		for (i=1; i<=n; i++) {
			scanf("%d",&p[i]);
		}
		for (i=1; i<=n-1; i++) {
			if(p[i]==1) {
				sum++;
			}
			if(p[i]!=1) {
				break;
			}
		}
		if(n==1) {
			printf("H\n");
		} else if(sum%2!=0) {
			printf("L\n");
		} else {
			printf("H\n");
		}
	}
	return 0;
}