defmodule Main do
  def main do
    IO.gets("")
    |> String.trim()
    |> String.split()
    |> process()
    |> IO.puts()
  end
  
  def process([a, b]) when a == b, do: "H"
  def process(_), do: "D"
  
end