function main(input){
  const args = input.trim().split("");
  const a = args[0],
        b = args[1];
  
  if (a == b)
    console.log("H");
  else
    console.log("D");
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));