S = eval(input())



if S == "hi" * (len(S)//2):

    print("Yes")

else:

    print("No")
S = eval(input())

if len(S)//2 * "hi" == S:

    print("Yes")

else:

    print("No")
S = eval(input())
if S == "hi" * (len(S) // 2):
    print("Yes")
else:
    print("No")

S = eval(input())
if len(S) // 2 * "hi" == S:
    print("Yes")
else:
    print("No")

-if S == "hi" * (len(S) // 2): +if len(S) // 2 * "hi" == S: