program prob1
    implicit none
    integer::i
    character(len=10)::S
    read(*,*) S

    do i = 1, 9
        if(S(i:i) == "h" .and. S(i+1:i+1) == "i") then
            write(*,*) "Yes"
            exit
        else if(S(i:i) /= "h" .and. i == 9) then
            write(*,*) "No"
        end if
    end do

    stop
end program prob1