program main
    use,intrinsic :: iso_fortran_env
    implicit none
    character(1):: a,b
    read*, a,b
    if (a==b) then
        print'(a)', 'H'
    else
        print'(a)', 'D'
    end if
    
end program main