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

#include "iostream"
using namespace std;
int main(){
	int n;
	int a[1005];
	while(~scanf("%d",&n)){
		for(int i=0;i<n;i++){
			scanf("%d",&a[i]);
		}
		int tot =0;
		for(int i=0;i<n;i++){
			if(a[i]==1)
				tot++;
			else 
				break;

		}
		if(tot%2==0)
			printf("H\n");
		else
			printf("L\n");
	}
}