function Main(input) {
  input = input.split(" ");
  var a = input[0];
  var b = input[1];
  var s;
  if(a==b){
    s="H";
  }else{
    s="D";
  }

  console.log('%s', s);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));