program test
implicit none
integer::c=0
character*10::S
read*,S
if(trim(S)=='hi')then
	print*,'Yes'
else if(trim(S)=='hihi')then
	print*,'Yes'
else if(trim(S)=='hihihi')then
	print*,'Yes'
else if(trim(S)=='hihihihi')then
	print*,'Yes'
else if(trim(S)=='hihihihihi')then
	print*,'Yes'
else
	print*,'No'
end if
end program test