function main(input) {
  input=input.trim();
  const a = input.split(" ")[0];
  const b = input.split(" ")[1];
  if((a=="H"&&b=="H") || (a=="D"&&b=="D")){
    console.log("H");
  }else{
    console.log("D");
  }
}



main(require('fs').readFileSync('/dev/stdin', 'utf8'));
