function Main(input) {
  input = input.split(" ");
  var a = input[0];
  var b = input[1];
  if(a!=b){
    var s="D";
  }else{
    var s="H";
  }
  console.log('%s', s);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));