function Main(input) {
  input = input.trim()
  input = input.split(" ");
if(input[0]==input[1]){
  console.log("H")
}else{
  console.log("D")
}

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));