import re



s = str(eval(input()))

flag = True



s_array = s.split('hi')

    

for list in s_array:

    res = re.match('[a-z0-9]', list)

    

    if res and len(res.group()) > 0 :

        flag = False

        break

            

if flag:

    print('Yes')

else:

    print('No')
s = eval(input())

replaced_str = s.replace('hi','')

if len(replaced_str) > 0:

  print('No')

else:

  print('Yes')
import re

s = str(eval(input()))
flag = True
s_array = s.split("hi")
for list in s_array:
    res = re.match("[a-z0-9]", list)
    if res and len(res.group()) > 0:
        flag = False
        break
if flag:
    print("Yes")
else:
    print("No")

s = eval(input())
replaced_str = s.replace("hi", "")
if len(replaced_str) > 0:
    print("No")
else:
    print("Yes")

-import re - -s = str(eval(input())) -flag = True -s_array = s.split("hi") -for list in s_array: -    res = re.match("[a-z0-9]", list) -    if res and len(res.group()) > 0: -        flag = False -        break -if flag: +s = eval(input()) +replaced_str = s.replace("hi", "") +if len(replaced_str) > 0: +    print("No") +else: -else: -    print("No")