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

    if(S == "hi" .or. S == "hihi" .or. S == "hihihi" .or. S == "hihihihi" .or. S == "hihihihihi")then
        write(*,*) "Yes"
    else
        write(*,*) "No"
    end if

    stop
end program prob1