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

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