import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int n;
int[] a = new int[1010];
while (in.hasNextInt()) {
n = in.nextInt();
boolean flag = true;
for (int i=0;i<n;++i){
a[i] = in.nextInt();
}
for (int i=0;i<n;++i) {
if (a[i] == 1) {
flag = !flag;
}else {
break;
}
}
if (flag) {
System.out.println("H");
}else {
System.out.println("L");
}
}
}
}