peterverebics/CodeNet_Python_118 huggingface dataset:
import sys
readline = sys.stdin.buffer.readline

S = readline().strip()
N = len(S)
ans = 'No'
if N%2 == 0:
    for i in range(N//2):
        if S[2*i] != 'h' or S[2*i+1] != 'i':
            break
    else:
        ans = 'Yes'

print(ans)
s = input()
if(s.count('hi')>0): print("Yes")
else: print("No")
h=input()

id=[i for i,k in enumerate(h) if k=="h"] 

a=0

for l in id:
  if "hi" in h[l:l+2]:
    if "ii" not in h[l+1:l+3]:
      a+=1
    elif "ii" in h[l+1:l+3]:
      a+=0
  elif "hi" not in h[l:l+2]:
    a+=0
        
if "h" not in h:
  a+=0
  
if a>0:
  print("Yes")
else:
  print("No")
s=input()
a=[str(c) for c in s]
for i in range(len(a)):
    if i%2==1:
        if a[i]!="i":
            print("No")
            exit()
    else:
        if a[i]!="h":
            print("No")
            exit()
print("Yes")
try:
  s = input()
  s = s.replace(' ', '')
  s = s.replace('hii', 'xxx')
  print(s)

  if "hi" in s:
    print("Yes")
  else: print("No")
    
except:
  print("No")
S=list(input())
a=0
for i in range(len(S)-1):
    if S[i]=="h":
        if S[i+1]!="i":
            a=1
            break
if a==0:
    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(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()
if S[0]!="h":
    print("No")
    exit()
han="i"
for i in range(1,len(S)):
    if S[i]!=han:
        print("No")
        exit()
    if S[i-1]=="h":
        han="h"
    elif S[i-1]=="i":
        han="i"
print("Yes")
a = "hi"
s = input()
n = 0
for i in range(5):
    if a*i==s:
        n = n+1
    else:
        pass
if n>=1:
    print("Yes")
else:
        print("No")
s = input()

if s.count("hi") > 0:
    print("Yes")
else:
    print("No")
S = list(input())

if "".join(list(dict.fromkeys(S))) == "hi":
    print("Yes")
    exit()

print("No")
n = raw_input()

if 'hi' in n:
  print("Yes")
else:
  print("No")
S = input()
print('Yes' if 'hi' in S else 'No')
s = input()
sS = s.replace('hi', 'H')
slist = sorted(sS)
kaisu = slist.count('H')
if kaisu >= 1:
  print('Yes')
else:
  print('No')
s=input()

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

print('Yes' if len(s)//2==s.count('hi') else 'No')
s = input("")
t = len(s)
a = 0
for i in range(t-1):
    if s[i] == "h" and s[i+1] == "i":
        a += 1
if a == 1:
    print("Yes")
else:
    print("No")
S = input()

j_S = 'hi'
j_b = ['a','i','o','u','e']

if len(S) > 1:
    if not j_S in S:
        print('No')    
    else:
        i = 0
        for in_b in j_b:
            j_S_b = j_S + in_b
            if j_S_b in S:
                i+=1
        if i==0:
            print('Yes')
        elif i > 0:
            print('No')
else:
    print('No')
x = input()
y = "hi"
for i in range(4):
    if y == x:
        print("Yes")
        break
    y = y + "hi"
else:
    print("No")
S = input()
#a,b = map(int,input().split())

ans = "Yes"
if len(S) <= 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 'hi':
  print('Yes')
else:
  print('No')
hitatistr = input()
count = 0
flag = "ok"
for i in hitatistr:
  if count % 2 == 0:
    if i != "h":
      flag = "ng"
      break
  else:
    if i != "i":
      flag = "ng"
  count = count + 1
if flag == "ok" and count >= 2 and count % 2 == 1:
  print("Yes")
else:
  print("No")
import sys

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

for i in s:
    if i == "h":
        cnt = 1
    elif i == "i":
        if cnt == 1:
            print("Yes")
            sys.exit()
    else:
        cnt = 0
        continue

print("No")
import sys
s = list(input())
c = 0
for i in range(len(s)-2):
    if s[i] == "h" and s[i+1] == "i":
        c += 1
    if s[i+1] == "i" and s[i+2] == "i":
        print("No")
        sys.exit()
if c >= 1:
    print("Yes")
else:
    print("No")
n = input()

ans = "No"
if "hi" in n:
    ans = "Yes"

if "hhi" in n or "hii" in n:
    if n.count("hi") - n.count("hii") - n.count("hhi") == 0:
        ans = "No"

print(ans)
S = str(input())
S_size = len(S)
hi_size = S.count('hi')
if S_size == hi_size * 2:
  print('yes')
else:
  print('no')
S = input()
a = True
for i in range(len(S)//2):
    if len(S) % 2 != 0:
        a = False 
        break
    else:
        if S[i//2] != 'h' or S[i//2 +1] != 'i':
            a = False
            break

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

if a == 'hi' or a == 'hihi' or a == 'hihihi' or a == 'hihihihihi':
    print('Yes')

else:
    print('No')
l=input()
if "hi" in l:
    print("Yes")
else:
    print("No")
s = input()

flag = False
if s[0]=="h":
  if s[1]=="i":
    flag = True
    
if flag==True:
  print("Yes")
else:
  print("No")
s = input()
if 'hi' in s:
  print('Yes')
elif 'hii' in s:
  print('No')
else:
  print('No')
import re
index = input().count("hi")
if index!=0:
    print("Yes")
else:
    print("No")
S = input().rstrip()
if "hi" in S and "hii" not in S:
  print("Yes")
else:
  print("No")
S = input()
if 'hi' in S:
  print('Yes')
else :
  print('No')
s = input()

if 'hi' in s:
    print('Yes')
else:
    print('No')
import re
s = input()
# m = re.fullmatch(hi{1,10},s):
# if m = "None":
#     print("No")
# else:
#     print("Yes")

if s == "hi" or "hihi"or "hihihi"  or "hihihihihi" or "hihihihihihi":
    print("Yes")
else:
    print("No")
S = input()
cout = S.count('hi')
if cout > 0:
  print('Yes')
else:
  print('No')
hi ="hi"
s = input()
if(hi in s):
    print("Yes")
else:
    print("No")
string = input()
flag = False

num = len(string)
if num % 2 == 0:
  for i in range(num //  2 - 1):
    if string[2*i:2*(i+1)] == "hi":
      flag = True

if flag:
  print("Yes")
else:
  print("No")
str = str(input())
if len(str)%2 != 0:
    print("No")
else:
    for i in range(len(str), 2):
        if str[i] != "h" & str[i + 1] != "i":
            print("No")
        else:
            print("Yes")
S = input()
s2 = S[::2]
s1 = S[1::2]
if not 'h' in s2 or not 'i' in s1:
    print('No')
else:
    print('Yes')
s = input()

for i in range(len(s)):
    if (i % 2 == 0 and s[i] != 'h') or ( i % 2 == 1 and s[i] != 'i'):
        print("No")
        exit()

print("Yes")
input_str = input()

if input_str.count("hi"):
  print("Yes")
else:
  print("No")
text = input()
flag = 0
for s in text:
    if flag == 0 and s == "h":
        flag = 1
    elif flag ==1 and s == "i":
        flag = 0
    else:
        print("No")
print("Yes")
S = input()
if "hi" in S:
  print("Yes")
else:
  print("No")
a = input()
print(a)

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

j_S = 'hi'
j_b = ['a','i','o','u','e']

if not j_S in S:
    print('No')    
else:
    i = 0
    for in_b in j_b:
        j_S_b = j_S + in_b
        if j_S_b in S:
            i+=1
    if i==0:
        print('Yes')
    elif i > 0:
        print('No')
hit_h = False
hit_i = False

result = 'No'
for i in input() + ' ':
  if not hit_h:
    if i == 'h':
      hit_h = True
  else:
    if i == 'i':
      if not hit_i:
        hit_i = True
      else:
        hit_h = False
        hit_i = False
    else:
      if hit_i:
        result = 'Yes'
      else:
        if not i == 'h':
          hit_h = False
print(result)
s = input()
a = 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 re

def resolve():
    str = input()
    if re.match('(hi)+', str):
        print("Yes")
    else:
        print("No")
        
resolve()
S=str(input())
if 'hi' in S:
  print('Yes')
else:
  print('No')
S = input()
if S.count('hi')>0:
    print('Yes')
else:
    print('No')
a = input()

if 'hi' in a:
  print('Yes')
else:
  print('No')
s = input()
a = 0
if len(s) == 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')
word = str(input("Enter something: ")).lower()
if word == "hi" * int(len(word) / 2) and 1 <= len(word) <= 10:
    print("Yes")
else:
    print("No")
input = input()
# input = "abc"
result = "No"
for i in range(len(input)-1):
    str = input[i] + input[i+1]
    if str == "hi":
        result = "Yes"
        break

print(result)
s = input()
if s.count("hi") == len(s)//2:
    print("Yes")
else:
    print("No")
if input().count("hi") >= 2:
  print("Yes")
else:
  print("No")
s=input()
s.replace('hi', '')
if s == '':
  print('Yes')
else:
  print('No')
def resolve():
    S = input()
    c = list(S)
    if len(c) < 1:
        print('No')
        return

    if len(c) <= 2 and S != 'hi':
        print('No')
        return

    for i in range(0, len(c) - 2, 2):
        if ''.join(c[i:i + 2]) != 'hi':
            print('No')
            return
    print('Yes')


resolve()
S = input()
text1 = S.replace("hii","1")
text2 = text1.replace("hi","2")
if '1' in text2:
  print ('No')
elif '2' in text2:
  print ('Yes')
else:
  print ('No')
import sys
S = input()
if len(S) == 1:
  print('No')
else:
  i = 0
  while i+2 <= len(S):
    if S[i:i+2] == 'hi':
      print('Yes')
      sys.exit(0)
    i+=1
print('No')
import re
s = str(input())
p = re.compile("(hi)+")
m = p.match(s)
if m is not None:
  print("Yes")
else:
  print("No")
s = input()
r = True
for i in range(0, len(s)-1, 2):
  if s[i:i+2] != "hi":
    r = False
print("Yes" if r else "No")
import sys

s=str(input())

for i in range(len(s)-1):
  if s[i]=="h" and s[i+1]=="i":
    print("Yes")
    sys.exit()
print("No")
S = input()
if 'hi' in S :
    print("Yes")
else:
    print("No")
s=input()

if s.count("hi")>=1:
    print("Yes")
else:
    print("No")
input_line = input()
input_num = len(input_line)
ans = 'Yes'
for i in range(input_num):
  if input_line[i] == 'h':
    if i + 1 < input_num:
      if input_line[i + 1] == 'i':
        i = i + 2
      else:
        ans = 'No'
        break
  else:
    ans == 'No'
    break
print(ans)
s=input()
b=s.strip('hi')
if b=="":
    print("Yes")
else:
    print("No")
s = input()

for i in range(len(s)):
  if i%2 == 0:
    if s[i] != "h":
      print("No")
      exit()
  else:
    if s[i] != "i":
      print("No")
      exit()
print("Yes")
s = str(input())
#print(s)

for i in range(len(s)-1):
  if str(s[i]+s[i+1]) == "hi":
    print("Yes")
    break
  else:
    print("No")
def solve():
    s = input()
    return 'Yes' if 'hi' in s else 'No'

print(solve())
value = input()
 
if 'hii' in value:
  print('No')
elif 'hi' in value:
  print('Yes')
else:
  print('No')
s = input()
strJudge = 'No'
if 'hi' in s:
    strJudge = 'Yes'

if 'hii' == s:
    strJudge = 'No'

print(strJudge)
value = input()

if 'hi' in value:
  print('Yes')
else:
  print('No')
string = input()
for i in range(len(string)):
    if i % 2 == 0:
        if string[i] == 'h':
            continue
        else:
            print('No')
            break
    elif i % 2 == 1:
        if string[i] == 'i':
            continue
        else:
            print('No')
            break
else:
    if len(string) == 1:
        print('No')
    else:
        print('Yes')
S = input()
ans = S.count("hi")

if ans > 0:
        print("Yes")
else:
        print("No")
# coding: utf-8
d = {"h":0, "i":0}
S = input()
if len(S) == 1:
    print("No")
    exit()
flag = True
for i in range(0, len(S)-1, 2):
    if S[i:i+2] != "hi":
        flag = False
        break
print("Yes" if flag else "No")
S = list(input().split())
ans = "No"
if len(S) == 1:
    ans = "No"
else:
    for i in range(len(S)-1):
        if S[i] == "h":
            if S[i+1] == "i":
                ans = "Yes"

print(ans)
a=input()
if 'hi' in a:
    print('Yes')
else:
    print('No')
s=input()
 
for i in range(len(s)):
  if s[i-1]=="h":
    if s[i]=="i":
      print("Yes")
    else:
        print("No")
# -*- coding: utf-8 -*-
mozi = str(input())
if mozi.find('hi') == -1 :
    print('No')
else:
    print('Yes')
s=list(input())
ans=0
for i in range(len(s)-2):
    if s[i] =="h":
        if s[i+1] == "i":
            if s[i+2] != "i":
                ans+=1
                break
if ans > 0:
    print("Yes")
else:
    print("No")
S = raw_input()
if 'hi' in S:
    print 'Yes'
else:
    print 'No'
s=input()
n=len(s)
for i in range(n):
    if s[i]=="h" and i!=n-1:
        if s[i+1]=="i":
            print("Yes")
            break
    if i==n-1:
        print("No")
import re

def judge(check_string):

    HITACH_STRING = "hi"

    # check length
    if not((1 <= len(check_string)) and (len(check_string) <= 10)):
        print("No")

    allow_pattern = "[a-z]+"
    group = re.match(allow_pattern, check_string)


    if HITACH_STRING in check_string:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    hitachi_string = input()
    judge(hitachi_string)
S = input()
ans = 'No'
for i in range(len(S)):
    if S[i:i+2] == 'hi':
        if i+3 > len(S) or S[i+2] != 'i':
            ans = 'Yes'
print(ans)
import re

s = input()
s_regex = re.compile(r'hi+')

if s_regex.search(s):
  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:
  print("No")
elif flg==1:    
  print("No")
elif flg==0:
  print("Yes")
S = input()

if S.count("hi") >= 1:
    print("Yes")
else:
    print("No")
import re
S = input()
if re.match(r'(hi)+',S):
    print('Yes')
else:
    print('No')
S = list(input())

word_num = int(len(S)/2)

temp_num = 0

if len(S) % 2 == 0:
    for i in range(word_num):
        if S[2*i]+S[2*i+1] == 'hi':
            pass
        else:
            temp_num += 1
else:
    print('No')

if len(S) % 2 == 0 and temp_num == 0:
    print('Yes')
else:
    pass
str = input()
count  = str.count("hi")
if count > 0 :
  print("Yes")
else :
  print("No")
S = input()
if 'hi' in S:
    print('Yes')
else:
    print('No')
S = input()
ans = 'Yes'
for j in range(len(list(S))//2):
    if S[2*j] == 'h' and S[2*j+1] == 'i':
        continue
    else:
        ans = 'No'
        break
print(ans)
hi = "hi"
hii = "hii"
S = input()

ans = "No"

if hi in S and hii not in S:
  ans = "Yes"
    
print(ans)
import sys

S = input()

flag = 0

for s in S:
    if s == "h":
        flag = flag + 1
        if flag >= 2:
            print("No")
            sys.exit()
    elif s == 'i':
        flag = flag - 1
        if flag < 0:
            print("No")
            sys.exit()
    else:
        print("No")
        sys.exit()

print("Yes")
# coding: utf-8
S = list(set(input()))
if "h" in S and "i" in S:
    print("Yes")
else:
    print("No")
s = input()

if s.find("hi") >= 0:
  print("Yes")
else:
  print("No")
s=input()
for i in range(0,len(s),2):
    if i < len(s)-1:
        break
    if s[i:i+2] != 'hi':
        print('No')
        exit()
print('Yes')
#!/usr/bin/env python
# -*- coding: utf-8 -*-

s = input()
if len(s) == 0:
    print('No')
    exit()


for i, letter in enumerate(s):
    if i % 2 == 0:
        if letter != 'h':
            print('No')
            exit()
    elif i % 2 != 0:
        if letter != 'i':
            print('No')
            exit()


print('Yes')
st=input()
import re
if re.search(r'hi', st) :
 print ("Yes")
else: print ("NO")
S = list(map(str,input()))
count_hi = 0
count_hii = 0


for i in range (0, len(S) - 1):
    if S[i] == 'h' and S[i+1] == 'i':
        count_hi += 1

for i in range(0, len(S) - 2):
    if S[i] == 'h' and S[i+1] == 'i' and S[i+2] == 'i':
            count_hii += 1

if count_hi > 0 and count_hii == 0:
    print('Yes')
else:
    print('No')
s = list(input())
f = True
while len(s) > 1:
    h = s.pop(0)
    i = s.pop(0)
    if h == 'h' and i == 'i':
        continue
    else:
        print('No')
        f = False
        break
    if len(s) == 0:
        break
if f:
    print('Yes')
import re
S=input()
if re.fullmatch(r'hi+',S):
    print("Yes")
else:
    print("No")
s='hi'
print('YNeos'[any(c != s[i & 1] for i, c in enumerate(input()))::2])
import re
index = re.match(r'([a-z]+)(hi)+([a-z]+)', input())
if index:
    print("Yes")
else:
    print("No")
input = input()

result = "Yes"
isHi = False
for i in range(len(input)-1):
    if isHi:
        continue;

    str = input[i] + input[i+1]
    if str != "hi":
        result = "No"
        break

    isHi = True

print(result)
import re
index = re.search(r'{(hi)+}', input())
if index:
    print("Yes")
else:
    print("No")
S=input()

hi="hi"

for i in range(5):
    if(S==hi*i):
        print("Yes")
        exit()
print("No")
import math
import string


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


s = input()
if 'hi' in s:
    print('Yes')
    exit()
print('No')
s = str(input())

Sample = ["h","hi","hihi","hihihi""hihihihi","hihihihihi"]

if s in Sample:
    print("Yes")
else:
    print("No")
s = input()
if s == "hi":
  print("Yes")
elif "hihi" in s:
  print("Yes")
else:
  print("No")
S = input()

if 'hi' in S:
    print('Yes')
else:
    print('NO')
s=str(input())
n=len(s)
ans=1
if s=='h':
    print("No")
    exit()
for i in range(n):
    if i%2==0 and s[i]!='h':
        ans=0
    if i%2==1 and s[i]!='i':
        ans=0
if ans==1:
    print("Yes")
else:
    print("No")
import sys
s = input()
n = 0
for i in range(int(len(s)/2)):
  if(s[n] != "h" or s[n + 1] != "i"):
    print("No")
    sys.exit()
print("Yes")
from sys import exit

s = input()

for i in range(len(s)):
    if i%2==0:
        if s[i]!='h':
            print('No')
            exit()
    else:
        if s[i]!='i':
            print('No')
            exit()
print('Yes')
from itertools import accumulate, permutations, combinations, product, combinations_with_replacement, groupby
from math import sqrt, factorial, log
from bisect import bisect_left, bisect_right
from collections import Counter, defaultdict, deque
from heapq import heappop, heappush, heappushpop
import sys
stdin = sys.stdin
mod = 10**9 + 7

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

s = ns()
if "hi" in s:
    print("Yes")
else:
    print("No")
s = input()
a='hi'
b=0
for n in range(5):
	if s==a*n:
		print("Yes")
		b=1
if b!=1:
	print("No")
S = input()
for i in range(len(S) - 1):
    if S[i] + S[i + 1] == "hi":
        print('Yes')
        exit()
print("No")
# -*- coding: utf-8 -*-

s = input()

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

if fl:
    print('Yes')
else:
    print('No')
s = input()
if s.find("hi") != -1:
    print("Yes")
else:
    print("No")
import sys

s = input()

if len(s) == 1:
  print('No')
  sys.exit()

for i in range(1,len(s)):
  if s[i-1:(i+1)] == 'hi':
    print('Yes')
    sys.exit()
    
print('No')
import sys
import math
readline = sys.stdin.buffer.readline

s = readline().rstrip().decode('utf-8')

if "hi" in s:
    print("Yes")
else:
    print("No")
s = input()
si = 'hi'
if s.strip(si) != "":
    print('No')
else:
    print('Yes')
s = input()
_s = set('hi')
print('Yes' if set(s) == _s else 'No')
s = input()
next_word = 'h'

for word in s:
    if word != next_word:
        print('No')
        exit()
    elif word == next_word:
        if next_word == 'h':
            next_word = 'i'
        elif next_word == 'i':
            next_word = 'h'
print('Yes')
S=input()

def No():
    print("No")
def Yes():
    print("Yes")

if len(S)%2!=0:
    No()
if len(S)==0:
    No()
if all([S[2*i:2*i+2]=="hi" for i in range(int(len(S)/2))]):
    Yes()
else:
    No()
A=input()
p='h'
q='i'
for i in range(11):
    if A==p or A==q:
        print('Yes')
        break
    else:
        p=p + 'i'
        q=q + 'h'
        i=i+1
S = input()
a = S.count("hi")
if a == 0:
     print("No")
else:
     print("Yes")
S = input()
if S == "hi" or S == "hihi" or S == "hihihi" or S == "hihihihihi" or S == "hihihihihi":
    print("Yes")
else:
    print("No")
S = input()

for i in range(len(S) - 2):
    if S[i] == "h" and S[i + 1] == "i":
        print("Yes")
        exit()

print("No")
S = input()
last = 'i'

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

for c in S:
    if (last == 'i' and c != 'h') or (last == 'h' and c != 'i'):
        print("No")
        exit()
    last = c
print("Yes")
exit()
import re
S = input()
if (S.count('hi') > 0):
  if (re.search('[^a-z]+hi',S)):
    print('No')
  elif (re.search('hi+[^h]',S)):
    print('No')
  elif (re.search('[^a-z]+hi+[^h]',S)):
    print('No')
  else:
    print('Yes')
else:
  print('No')
str = input()
str_len = len(str)
h_flag = 0
for cat_i in range(str_len):
  if h_flag == 0 and str[cat_i] == 'h':
    h_flag = 1
  elif h_flag == 1 and str[cat_i] == 'i':
    h_flag = 0
  else:
    print('No')
    break
    
  if cat_i == (str_len - 1):
    print('Yes')
str = input()
yes = True
for i in range(len(str)):
  if (i % 2 == 0 and str[i] != 'h') or (i % 2 == 1 and str[i] != 'i'):
    yes = False
    break
print("Yes" if yes else "No")
S = input()
S.replace("hi","")
if S == "":
  print("Yes")
else:
  print("No")
S = str(input())
if 'hi' in S:
    print('Yes')
else:
    print('No')
s = str(input())

result = "No"

for n in range(1,5):
    if 'hi'*n == s:
        result = "Yes"
        break
print(result)
s = input()

if s.count("hi") > 0:
    if s.count("hii") > 0:
        print("No")
        exit()
    if s.count("ha") > 0:
        print("No")
        exit()
    if s.count("hi") == s.count("hii"):
        print("No")
        exit()
    else:
        print("Yes")
        exit()
print("No")
S = input()
print("Yes" if S.count("hi") >= 1 else "No")
S=input("")
if S=="hi" or S=="hihi":
  print("YES")
else:
  print("NO")
s=input()
if "hi" in s:
  print("Yes")
else:
  print("No")
s = input()
if "hi" in s:
  print("Yes")
else:
  print("No")
s = input()
if "hi" in s:
    print("Yes")
else:
    print("No")
S = str(input())
ans = 0
for i in range(len(S)-1):
    if S[i] == 'h' and S[i+1] == 'i':
        print('Yes')
        ans = 1
        break
if ans == 0:
    print('No')
S = input()

print("Yes" if S.find("hi") != -1 else "No")
from collections import defaultdict
from collections import deque
from string import ascii_uppercase
import sys, bisect, math, heapq

stdin = sys.stdin
read_int = lambda : list(map(int,stdin.readline().split()))
read_str = lambda : stdin.readline().rstrip()

S = read_str()

def solve():
    for i, s in enumerate(S):
        if i % 2 == 0:
            if s != 'h': return 'No'
        else:
            if s != 'i': return 'No'
    return 'Yes'

if __name__ == "__main__":
    print(solve())
s = input()
flag = False
for i in range(len(s)-1):
    if s[i] == "h" and s[i+1] == "i":
        if i < len(s)-2 and s[i+2] == "i":
            pass
        else:
            flag = True
            break
if flag:
    print("Yes")
else:
    print("No")
S = input()
a = int(len(S) / 2)
b = S.count("hi")
if a == b:
    print("Yes")
else:
    print("No")
S = input()

now = 0
hi = ["h", "i"]
for s in S:
    if hi[now] != s:
        print("No")
        exit(0)

    if now == 0:
        now = 1
    else:
        now = 0

print("Yes")
hitachi = input()

if hitachi in 'hi':
  print('Yes')
else:
  print('No')
S = list(input())

if "".join(list(dict.fromkeys(S))) == "hi" and S.count("h") == S.count("i"):
    print("Yes")
    exit()

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