peterverebics/CodeNet_Python_118 huggingface dataset:
s =input()
if s == "hi":
    print ("Yes")
elif s== "hihi":
    print ("Yes")
elif s=="hihihi":
    print ("Yes")
elif s == "hihihihi":
    print ("Yes")
elif s =="hihihihihi":
    print ("Yes")
else:
    print("No")
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import random
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353


S = sys.stdin.buffer.readline().decode().rstrip()
ok=False
for i in range(1,6):
    ok  |= S == 'hi' * i
if ok:
    print('Yes')
else:
    print('No')
S = input()

if S == "hi":
    print("Yes")
    exit()
if S == "hihi":
    print("Yes")
    exit()
if S == "hihihi":
    print("Yes")
    exit()
if S == "hihihihi":
    print("Yes")
    exit()
if S == "hihihihihi":
    print("Yes")
    exit()
    
print("No")
s=list(str(input()))
if len(s)%2==1:
    print("No")
else:
    for i in range(0,len(s),2):
        if s[i]!='h' or s[i+1]!='i':
            print("No")
            break
    else:
        print("Yes")
S = input()
ans = ""
flag =  0
for i in range(5):
    ans += "hi"
    if ans == S:
        print("Yes")
        flag += 1
        break
if flag == 0:
    print("No")
s = input().rstrip()

for i in range(1, 6):
    if s == "hi" * i:
        print("Yes")
        exit()
print("No")
s = input()

if len(s) % 2 == 0:
    ans = True
else:
    ans = False

for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'h':
            ans = False
    else:
        if s[i] != 'i':
            ans = False

if ans:
    print('Yes')
else:
    print('No')
import sys
s=input()
if(len(s)%2==1):
	print('No')
	sys.exit()
for i in range(len(s)):
	if i % 2 == 0:
		if s[i]!='h':
			print('No')
			sys.exit()
	else:
		if s[i]!='i':
			print('No')
			sys.exit()
print('Yes')
import sys
S = list(input())
if (len(S) % 2 == 1):
    print("No")
    sys.exit()
pre = S.pop(0)
for s in S:
    if(pre == "h"):
        if(s != "i"):
            print("No")
            sys.exit()
    elif(pre != "i"):
        print("No")
        sys.exit()
    pre = s
print("Yes")
hitachi = "hi"

S = str(input())
for i in range(1,6):
    if S == hitachi * i:
        print('Yes')
        exit()
        

print('No')
a = input().strip()
n = len(a)
if(n&1 == 1):
  print("No")
else:
  ans = "Yes"
  for i in range(0, n, 2):
    if(a[i:i+2] != "hi"):
      ans = "No"
  print(ans)
s=input()
s_list=s.split("hi")
for ss in s_list:
    if ss=="":
        result="Yes"
        continue
    else:
        result="No"
        break
print(result)
S = input()
t = ""
for _ in range(5):
  t += "hi"
  if t == S:
    print("Yes")
    exit()
print("No")
str = input()
split_list = [str[i: i+2] for i in range(0, len(str), 2)]
for i in split_list:
    if i == "hi":
        continue
    else:
        print("No")
        break
else:
    print("Yes")
import sys
s=input()
for i in range(1,6):
    if 'hi'*i==s:
        print('Yes')
        sys.exit()
print('No')
S = input("")
k = 0
if len(S) % 2 == 1:
    print("No")
else:
    for i in range(0,len(S),2):
        if S[i:i+2] != "hi":
            print("No")
            k = 1
            break
    if k == 0:
        print("Yes")
s = input()
n = len(s)
if n % 2 == 1:
    print('No')
else:
    for i in range(0, n, 2):
        if s[i:i+2] != 'hi':
            print('No')
            exit()
    print('Yes')
S = input()
flg = False

num = len(S)
if num == 2 and S == 'hi':
    flg = True
if num == 4 and S == 'hihi':
    flg = True
if num == 6 and S == 'hihihi':
    flg = True
if num == 8 and S == 'hihihihi':
    flg = True
if num == 10 and S == 'hihihihihi':
    flg = True

if flg == True:
    print('Yes')
else:
    print('No')
S=input()

answer="Yes"

for i in range(len(S)//2):
    if S[2*i:2*(i+1)]=="hi":
        pass
    else:
        answer="No"
        break
if len(S)%2==1:
    answer="No"

print(answer)
S = input()
t = ''
for _ in range(100):
    t = t + 'hi'
    if t == S:
        print('Yes')
        exit()
print('No')
S = input()
import re
if re.fullmatch(r'(hi)+',S):
    print('Yes')
else:
    print('No')
s = input()

if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
    print("Yes")
else:
    print("No")
li = list(input())
n = len(li)
for i in range(0, n, 2):
    if li[i] == 'h' and li[i + 1] == 'i' and n % 2 == 0:
        pass
    else:
        print('No')
        exit()
print('Yes')
s = list(input())
ans = 'Yes'

for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'h':
            ans = 'No'
    else:
        if s[i] != 'i':
            ans = 'No'
      
if len(s) % 2 == 1:
    ans = 'No'
    
print(ans)
import re
s = str(input())
p = re.compile("(hi)+")
m = p.fullmatch(s)
if m is not None:
  print("Yes")
else:
  print("No")
def find():
    a=input()
    c=a.split('hi')
    for i in c:
        if i!="":
            return "No"
    return "Yes"
print(find())
s = input()
if len(s.replace('hi','')) == 0:
    print('Yes')
else:
    print('No')
S = input()
S2 = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi']

if S in S2:
    print('Yes')
else:
    print('No')
import sys

S = input()

mypos = 0

while mypos < len(S):
    if S[mypos:mypos+2] == 'hi':
        mypos += 2
    else:
        print('No')
        sys.exit()
    
print('Yes')
s = input()
if s=='hi' or s=='hihi' or s=='hihihi' or s=='hihihihi' or s=='hihihihihi' :
	print("Yes")
else:
	print("No")
S = input()

for i in range(6):
    if S == 'hi'*i:
        print('Yes')
        exit()
print('No')
#!/usr/bin/env python3

input = input()
hitati = [ 'hi'*i for i in range(1, 6) ]
if input in hitati:
    print('Yes')
else:
    print('No')
def solve():
    S = input()
    x = "hi"
    for i in range(10):
        if S == x * i:
            print("Yes")
            return
    print("No")


solve()
import math
import sys
#読み込み
s = input()
num = len(s)

#偶数個の文字でなければno
if num % 2 != 0:
    print("No")
    sys.exit()

#偶数番目がhか判定
for i in range(math.floor(num/2)):
    if s[2 * i] != "h":
        print("No")
        sys.exit()

#奇数番目がiか判定
for j in range(math.floor(num/2)):
    if s[2 * j + 1]  != "i":
        print("No")
        sys.exit()
        
print("Yes")
s = input()
if s in ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi']:
    print('Yes')
else:
    print('No')
S = input()
if S.count("hi") == len(S)//2 and len(S)%2==0:
    print("Yes")
else:
    print("No")
import re;print(re.match('(hi)+$',input())and'Yes'or'No')
s = input()
while s[0:2:] == "hi":
    s = s[2::]
if len(s) == 0:
    print("Yes")
else:
    print("No")
# A - Hitachi String
def main():
    S = input().rstrip()
    print("Yes" if S in {"hi", "hihi", "hihihi", "hihihihi", "hihihihihi"} else "No")


if __name__ == "__main__":
    main()
import re

pattern = re.compile("(hi)+")
s = input()
print("Yes" if pattern.fullmatch(s) else "No")
s = input()
ans = 'Yes'
if len(s) % 2 == 1:
    ans = 'No'
for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'h':
            ans = 'No'
    else:
        if s[i] != 'i':
            ans = 'No'
print(ans)
S = input()
if S.count("hi") * 2 == len(S):
    print("Yes")
else:
    print("No")
S = input()
if S.replace('hi', '') == '':
    print('Yes')
else:
    print('No')
S = list(input())

if len(S) % 2 == 1:
    print("No")
    exit()

i = 0
while i < len(S):
    if S[i] == 'h' and S[i+1] == 'i':
        i += 2
    else:
        print("No")
        exit()

print("Yes")
#for _ in range(int(input())):
s = input()
if len(s)%2==0:
    if s=="hi"*int(len(s)/2):
        print("Yes")
    else:
        print("No")
else:
    print("No")
s = input()
if s.count("hi") * 2 == len(s):
  print("Yes")
else:
  print("No")
S = input().rstrip()
if S == "hi" or S == "hi"*2 or S == "hi"*3 or S == "hi"*4 or S == "hi"*5:
  print("Yes")
else:
  print("No")
s = input()
n = len(s)
if n % 2 == 0 and s == "hi"*(n//2):
    print("Yes")
else:
    print("No")
S = input()

cnt = S.count("hi")

print("Yes" if len(S) == cnt * 2 else "No")
def main():
    a = input()
    if a in ["hi", "hi"*2, "hi"*3, "hi"*4, "hi"*5]:
        print("Yes")
    else:
        print("No")


main()
s = input()
ans = 'No'
t = ''

for i in range(5):
  t = t + 'hi'
  if s == t:
    ans = 'Yes'

print(ans)
S = input()
tmp = S.replace("hi", "")
print("Yes" if tmp == "" else "No")
s = input().split("hi")

if len(s)==1:
  print("No")
elif len(set(s)) == 1:
  print("Yes")
else:
  print("No")
S = input().strip()
target = S
if target == 'hi':
    print('Yes')
elif target == 'hihi':
    print('Yes')
elif target == 'hihihi':
    print('Yes')    
elif target == 'hihihihi':
    print('Yes')
elif target == 'hihihihihi':
    print('Yes')
else:
    print('No')
S = str(input())

if S=="hi" or S=="hihi" or S=="hihihi" or S=="hihihihi" or S=="hihihihihi":
  print("Yes")
else:
  print("No")
import re
S = input()
if re.match(r'^(hi)+$',S):
    print('Yes')
else:
    print('No')
s = input()
a = 0
if len(s) % 2 == 1:
    print('No')
    exit(0)
for i in range(len(s)):
    if i % 2 == 0:
        if s[i] == 'h':
            pass
        else:
            a += 1
    else:
        if s[i] == 'i':
            pass
        else:
            a += 1

if a == 0:
    print('Yes')
else:
    print('No')
import sys
import math
import bisect

def solve(s):
    n = len(s)
    if n % 2 == 1:
        return False
    for i in range(0, n, 2):
        if s[i:i+2] != 'hi':
            return False
    return True

def main():
    if solve(input()):
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()
S = input()
if "hi" * (len(S) // 2) == S:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-
S = input()
hi_s = "hi"

if len(S)%2!=0:
  print("No")
else:
  flg = 0
  for i in range(int(len(S)/2)):
    if S[(2*i):(2*i+2)]=="hi":
      pass
    else:
      flg = flg + 1

  if flg==0:
    print("Yes")
  else:
    print("No")
s=input()
_s="hi"*(len(s)//2)
if s==_s:
  print("Yes")
else:
  print("No")
S = input()

if len(S) % 2 ==1:
    out = 'No'

else:
    dammy = 'hi' * (len(S)//2)
    if dammy==S:
        out='Yes'
    else:
        out='No'




print(out)
s = input()

if s == "hi" * int(len(s) / 2):
  print("Yes")
else:
  print("No")
x = input()
if x =='hi':
  print('Yes')
elif x =='hi'*2:
  print('Yes')
elif x =='hi'*3:
  print('Yes')
elif x =='hi'*4:
  print('Yes')
elif x =='hi'*5:
  print('Yes')
else:
  print('No')
s = input()


if s == "hi":
  print("Yes")
elif s == "hihi":
  print("Yes")
elif s == "hihihi":
  print("Yes")
elif s == "hihihihi":
  print("Yes")
elif s == "hihihihihi":
  print("Yes")
else:
  print("No")
s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
  print("Yes")
else:
  print("No")
s = input()
if s == "hi" or s == "hi"*2 or s == "hi"*3 or s == "hi"*4 or s == "hi"*5:
    print("Yes")
else:
    print("No")
def main():
    S = input()
    ans = "Yes"
    if len(S) % 2 == 1:
        ans = "No"
    elif len(S) % 2 == 0:
        i = 0
        j = 2
        while j <= len(S):
            if S[i:j] == "hi":
                pass
            elif S[i:j] != "hi":
                ans = "No"
            i += 2
            j += 2
    print(ans)

if __name__ == "__main__":
    main()
s = list(input())

if len(s) % 2 == 1:
    print('No')
    exit()

for i in range(len(s) // 2):
    if s[i*2] == 'h' and s[i*2+1] == 'i':
        continue
    print('No')
    exit()

print('Yes')
s = input()

correct = True
if len(s) % 2 != 0:
    print("No")
    correct = False
else:
    length = len(s) // 2
    for i in range(length):
        if s[i * 2] != "h":
            print("No")
            correct = False
            break
        elif s[i*2 +1] != "i":
            print("No")
            correct = False
            break

if correct:
    print("Yes")
# coding: utf-8
# Your code here!

S = input()
if 'hi' in S:
    S = S.replace('hi','')
if S ==  '':
    print('Yes')
else:
    print('No')
# coding:utf8
S = input()

if S == "hi" or S =="hihi" or S=="hihihi" or S=="hihihihi" or S=="hihihihihi":
    print("Yes")
else :
    print("No")
N = input()
chk = 0
if len(N)%2 == 1:
  print("No")
else:
  for i in range(len(N)//2):
    if N[(2*i):(2*i+2)] != "hi":
      chk = 1
      break
    else:
      continue
  if chk == 1:
    print("No")
  else:
    print("Yes")
import math
from collections import deque
def main():
    s = input()
    if(len(s)%2!=0):
        print("No")
        return

    for i,c in enumerate(s):
        if i%2==0:
            if c!='h':
                print("No")
                return
        else:
            if c!='i':
                print("No")
                return

    print("Yes")


if __name__ == "__main__":
    main()
s = input()
if len(s)%2 == 1:
  print("No")
elif s.count("hi") == len(s)//2:
  print("Yes")
else:
  print("No")
s = str(input())
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
    print("Yes")
else:
    print("No")
# Code for A - Hitachi String
# Use input() to fetch data from STDIN
s = input()
def solve():
    if len(s) % 2 != 0:
        print("No")
        return

    for i, x in enumerate(s):
        if i % 2 == 0 and not x == "h":
            print("No")
            return
        if i % 2 == 1 and not x == "i":
            print("No")
            return

    print("Yes")

solve()
S = input()

hic = S.count('hi')
if hic * 2 == len(S):
    print('Yes')
else:
    print('No')
S=input()
flg = True
for i in range(len(S)):
    if len(S)%2 == 1:
        flg = False
        break
    if i%2==0:
        if S[i]+S[i+1] != "hi":
            flg = False

if flg == True:
    print("Yes")
else:
    print("No")
S = input()

if S == "hi" * (len(S)//2):
    print("Yes")
else:
    print("No")
S=input()
cnt=S.count("hi")
if(len(S) == cnt*2):
  print("Yes")
else:
  print("No")
s = input()
li = list(s)
if (len(s)%2==0):
    for i in range(0,len(s),2):
        a = li[i] + li[i+1]
        if (a!="hi"):
            print("No")
            break
    else:
        print("Yes")
else:
    print("No")
S = input()
hi = 'hi'
if len(S) % 2 == 0:
    T = len(S) // 2 * hi
    if S == T:
        print('Yes')
    else:
        print('No')
else:
    print('No')
S = input()
s = list(S)
k = []
a = round(len(s) / 2)
b = len(s) % 2
if b == 0:
    for i in range(a):
        k.append(s[i * 2]+s[i * 2 + 1])
    n = 0
    for j in range(a):
        if k[j] == "hi":
            n = n + 1
    if n == 0:
        print("No")
    elif n == a:
        print("Yes")
    else:
        print("No")
    
else:
    print("No")
S = input()
if len(S) % 2 == 0:
    if S == "hi":
        print("Yes")
    elif S == "hihi":
        print("Yes")
    elif S == "hihihi":
        print("Yes")
    elif S == "hihihihi":
        print("Yes")
    elif S == "hihihihihi":
        print("Yes")
    else:
        print("No")
else:
    print("No")
s = input()
ans = False
if len(s) < 1 or len(s) >10:
    ans = False
if len(s) >= 1 or len(s) <= 10:
    if s == 'hi' or s == 'hihi' or s == 'hihihi' or s == 'hihihihi' or s == 'hihihihihi':
        ans =True
    else:
        ans =False
if ans:
    print ('Yes')
else:
    print('No')
s = input()
cnt = 0

if len(s)%2 == 1:
    print('No')
    exit()

for i in range(len(s)//2):
    if i == (len(s)/2):
        break
    if s[(i*2):(i+1)*2] != 'hi':
        cnt += 1

print('Yes' if cnt == 0 else 'No')
S = input()

if (S == 'hi')or(S == 'hihi')or(S == 'hihihi')or(S =='hihihihi')or(S == 'hihihihihi'):
    print('Yes')
else:
    print('No')
a=input()
flg=0
for i in range(len(a)//2):
  if not (a[2*i]=='h' and a[2*i+1]=='i'):
  	flg=1      
if len(a)%2!=0 or flg==1:
  print("No")
else:
  print("Yes")
S = input().replace("hi","")
if S == "":
    print("Yes")
else:
    print("No")
S = input()
N = int(len(S)/2)

[print('Yes') if S == 'hi'*N else print('No')]
import sys
#input = sys.stdin.buffer.readline


# mod=10**9+7
# rstrip().decode('utf-8')
# map(int,input().split())
# import numpy as np

def main():
	s=input()
	ans="No"
	if s in ["hi","hihi","hihihi","hihihihi","hihihihihi"]:
		ans="Yes"
	print(ans)

if __name__ == "__main__":
	main()
s=input()

tog=True
for i in s:
    if tog:
        if i!="h":
            print("No")
            exit(0)
    else:
        if i!="i":
            print("No")
            exit(0)
    tog=not tog

if tog:
    print("Yes")
else:
    print("No")
s=input()
if s in ('hi','hihi','hihihi','hihihihi','hihihihihi'):
    print('Yes')
else:
    print('No')
s=input()
list=[]
for i in range(1,100):
    list.append("hi"*i)
if s in list:
    print("Yes")
else:
    print("No")
s=input()
a=s.split('hi')
f=0
for i in a:
  if(len(i)>0):
    f=1
    print('No')
    break
if(f==0):
  print('Yes')
str = input()

a = str.replace('hi', '')
#print(a)

if len(a) > 0:
  print('No')
else:
  print('Yes')
s = input().replace("hi",'1')
for a in s:
  if a != '1':
    print("No")
    exit()
print("Yes")
s=str(input())
for i in range (6):
    if s =="hi"*i:
        print("Yes")
        exit()
for i in range (6):
    if s !="hi"*i:
        print("No")
        break
s = input()
for i in range(1, 6):
	if s == "hi" * i:
		print("Yes")
		break
else:
	print("No")
s = input()
if (len(s)+1)//2 == s.count('hi'):
  print('Yes')
else:
  print('No')
s = input()
def check(s):
    l  = len(s)
    if l%2 != 0:
        return "No"
    else:
        r =  int(l/2)
        for i in range(r):
            a = s[2*i]
            b = s[2*i+1]
            if a == "h" and b == "i":
                pass
            else:
                return "No"
        return 'Yes'
print(check(s))
def main():
  S = input()
  lst = []
  for i in range(1, 100):
    lst.append('hi' * i)

  for it in lst:
    if S == it:
      print('Yes')
      return

  print('No')
  
if __name__ == '__main__':
  main()
s = input()

ans = True
for i in range(0, len(s)-1, 2):
  if s[i] + s[i+1] != 'hi':
    ans = False
    
if len(s) % 2 == 1:
  ans = False

if ans:
  print("Yes")
else:
  print("No")
s = input()

l = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi']
if s in l:
  print('Yes')
else:
  print('No')
a = input()
if a == "hi" * (len(a) // 2):
  print("Yes")
else:
  print("No")
S=list(str(input()))
A=''
B=''
while len(S)>0:
    A+=S.pop()
    if len(S)>0:
        B+=S.pop()
if (len(A)+len(B))%2!=0:
    print('No')
elif len(set(A))==len(set(B))==1:
    if 'h' in A or 'i' in A:
        if 'h' in B or 'i' in B:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')
S = input()
len_s = len(S)
hitachi = 'hihihihihi'
if len_s%2==1:
    print('No')
else:
    if S==hitachi[0:len_s]:
        print('Yes')
    else:
        print('No')
import sys

s = list(map(str,input()))

if len(s)%2 == 1:
    print("No")
    sys.exit()

for i in range(len(s)):
    if i%2 == 0:
        if s[i] != "h":
            print("No")
            sys.exit()
    else:
        if s[i] != "i":
            print("No")
            sys.exit()

print("Yes")
S = input()
if S == 'hi' or S == 'hihi' or S == 'hihihi' or S == 'hihihihi' or S == 'hihihihihi':
    print('Yes')
else:
    print('No')
S = input()

hitachi_str = ["hi" * i for i in range(1, 6)]
if S in hitachi_str:
    print("Yes")
else:
    print("No")
S=input()
N=len(S)
i=0
while i<N:
  if S[i:i+2]=='hi':
    i+=2
  else:
    print('No')
    exit()
print('Yes')
S = raw_input()
print "Yes" if S=="hi"*(len(S)/2) else "No"
s = input()
if len(s) % 2:
  print("No")
  exit()
for k,i in enumerate(s):
  if k % 2:
    if i != "i":
      print("No")
      exit()
  else:
    if i != "h":
      print("No")
      exit()
print("Yes")
s = input().replace('hi', '')
if len(s):
    print("No")
else:
    print("Yes")
S = input()
S = S.replace("hi","")
if len(S) == 0:
    print("Yes")
else:
    print("No")
a=input()
if a=='hi' or a=='hihi' or a=='hihihi' or  a=='hihihihi' or a=='hihihihihi' :    
    print('Yes')
else :
    print('No')
S=str(input())
k=len(S)
ans="Yes"
if k%2==0:
    for i in range(k//2):
        t=S[2*i:2*i+2:1]
        if t=="hi":
            continue
        else:
            ans="No"
            break
else:
    ans="No"
print(ans)
# coding: utf-8

s = raw_input()
print ['No', 'Yes'][s in [
    'hi'
    ,'hihi'
    ,'hihihi'
    ,'hihihihi'
    ,'hihihihihi'
    ]]
S = input().strip()

for i in range(6):
    if S == "hi" * (i + 1):
        print("Yes")
        exit()

print("No")
S = input()
print('Yes') if S == 'hi' or S == 'hihi' or S == 'hihihi' or S == 'hihihihi' or S == 'hihihihihi' else print('No')
s=input()
hitati="hi"*(len(s)//2)
if hitati==s:
  print("Yes")
else:
  print('No')
s = input()
if s.count("hi") == len(s) / 2:
    print("Yes")
else:
    print("No")
S = input()
if len(S) % 2 == 1:
  print("No")
else:
  ans = "Yes"
  for i in range(0, len(S), 2):
    if S[i] != "h" or S[i+1] != "i":
      ans = "No"
  print(ans)
S = input()
ans = ''
flag = False
for i in range(5):
    ans += 'hi'
    if ans == S:
        flag = True

print('Yes' if flag else 'No')
import re
print("Yes") if re.fullmatch(r'(hi)+',input()) else print("No")
S = input().strip()

if len(S) % 2 != 0:
    print("No")
else:
    hitach = "Yes"
    while len(S) > 0:
        s = S[0:2]
        S = S[2:]
        if s != "hi":
            hitach = "No"
            break
    print(hitach)
buf = input()
buf = buf.replace('hi', '')
if len(buf) > 0:
  print('No')
else:
  print('Yes')
s=input()
for i in range(len(s)//2):
    if s[-2:]=="hi":
        s=s[:-2]
if s=="":
    print("Yes")
else:
    print("No")
w = input()
 
if w == 'hi' or w == 'hihi' or w == 'hihihi' or w == 'hihihihi'or w == 'hihihihihi':
    print('Yes')
else:
    print('No')
S = input()
ans = "No"
if len(S) % 2 == 0:
    if S == ("hi" * (len(S) // 2)):
        ans = "Yes"


print(ans)
S=input()
ans=''
for i in range(5):
    ans+='hi'
    if(S==ans):
        print("Yes")
        exit()
print('No')
S = input()
N = len(S)
out = "Yes"
if N%2==1:
    print("No")
else:
    for i in range(0,int(N//2)):
        if (S[2*i]=="h")and(S[2*i+1]=="i"):
            continue
        else:
            out = "No"
    print(out)
# A 
s = input()

for i in range(0, len(s), 2):
    if len(s)%2 == 1:
        bool = False
        break
    elif s[i] == 'h' and s[i+1] == 'i':
        bool = True
    else:
        bool = False
        break
        
print('Yes' if bool else 'No')
import re
s = input()
isHitachi = re.search("^(hi)+$", s)
if isHitachi:
  print("Yes")
else:
  print("No")
import sys
S= list(str(input()))
for i in range(len(S)-1):
    if S[i]=='h'and S[i+1]=='i'and S.count('h')==S.count('i'):
        print('Yes')
        sys.exit()
    elif S[i]=='h'and S[i+1]=='h':
        print('No')
        sys.exit()
print('No')
s = input()
l = len(s)
if s.count("hi") == l/2:
  print("Yes")
else:
  print("No")
S = input()
t = 0
s = ['h', 'i']
if len(S)%2==1:
    print("No")
    quit()
for i in S:
    if i!=s[t]:
        print("No")
        quit()
    t ^= 1

print("Yes")
import sys

def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LMI(): return list(map(int, sys.stdin.readline().split()))
MOD = 10 ** 9 + 7


S = input()
if len(S) % 2 != 0:
    print('No')
    exit(0)
for i, c in enumerate(S):
    if i % 2 == 0 and c != 'h':
        print('No')
        exit(0)
    if i % 2 != 0 and c != 'i':
        print('No')
        exit(0)
print('Yes')
s = input()
ans = 'Yes' if s in ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi'] else 'No'
print(ans)
s = input()

if len(s)%2 == 0:
    x = len(s)//2
    if "hi"*x == s:
        print("Yes")
    else:
        print("No")
else:
    print("No")
print('Yes' if input() in ['hi'*i for i in range(1,11)] else 'No')
import sys
S = input()
for i in range(1,6):
    if S == "hi" * i:
        print("Yes")
        sys.exit()
print("No")
S = input()
flg = True
if len(S)%2 == 1:
  print('No')
else:
  for i in range(0, len(S), 2):
    if S[i:i+2] != 'hi':
      print('No')
      flg = False
      break
  if flg:
    print('Yes')
import sys
s = input()

i = 0
while True:
    if s[i:i+2] != 'hi':
        print('No')
        sys.exit()
    i += 2
    if i >= len(s):
        break

print('Yes')