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

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