import re;print((re.match('(hi)+$',eval(input()))and'Yes'or'No'))
print(("NYoe s"[eval(input())in["hi"*x for x in range(6)]::2]))
import re

print((re.match("(hi)+$", eval(input())) and "Yes" or "No"))

print(("NYoe s"[eval(input()) in ["hi" * x for x in range(6)] :: 2]))

-import re - -print((re.match("(hi)+$", eval(input())) and "Yes" or "No")) +print(("NYoe s"[eval(input()) in ["hi" * x for x in range(6)] :: 2]))