import scala.io.StdIn

object Main extends App {

  val pa = StdIn.readLine().split(" ")
  // a='H' println(b)
  // a='D' println(!b)
  println(if (pa(0) == "H") pa(1) else if (pa(1) == "H") "D" else "H")

}
