peterverebics/CodeNet_Python_118 huggingface dataset:
input_line = input()
input_num = len(input_line)
ans = 'Yes'
num = 0
for i in range(input_num):
  if num == 0:
    if input_line[i] == 'h':
      if i + 1 < input_num:
        if input_line[i + 1] == 'i':
          num = 1
          ans = 'Yes'
        else:
          ans = 'No'
    else:
      ans = 'No'
  else:
    num = 0
print(ans)
s = raw_input()
print 'Yes' if 'hi' in s else 'No'
S = input()

ans = "No"

for i in range(len(S) - 1):
  if S[i] == "h" and S[i + 1] == "i":
    if i == len(S) - 2:
      ans = "Yes"
      break
    else:
      if S[i + 2] != "i":
        ans = "Yes"
        break

print(ans)
f=0
s=list(input())
if len(s)==1:
    print('No')
    f=1
else:
    for i in range(len(s)):
        if i%2==1:
            if s[i]!='i':
                f=1
                print('No')
                break
        else:
            if s[i]!='h':
                f=1
                print('No')
                break
if f==0:
    print('Yes')
S = input()

hi = S.replace('hi', '')

if hi == "":
   print("yes")
else:
   print("No")
s=input()
n=len(s)
t=set(s)
buf=0
for i in range(1,n):
    if s[i-1]=='h' and s[i]=='i':
        buf+=1
if buf>=1 and n%2==0 and len(t)==2:
    print('Yes')
else:
    print('No')
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 = input()
result = ["Yes" if (len(S) > 1) and (S[-2] == "h") and (S[-1] == "i") else "No"]
p = list(map(print, result))
s=input()
 
for i in range(len(s)):
  if s[i-1]=="h":
    if s[i]=="i":
      print("Yes")
print("No")
S=str(input())
if "hi" in S:
    print("Yes")
else:print("No")
S=input()
SET=set(list(S))

if ("h" in SET) and ("i" in SET) and len(SET)==2:
  print("Yes")
else:
  print("No")
a = list(map(str, input().split()))
num = len(a)
TorF = True

if num % 2 == 0:
    for i in range(num/2):
        if not a(2*i ) == 'h' and a(2*i + 1) == 'i':
            TorF = False
            break
else:
  TorF = False
  
if TorF == True:
    print('Yes')
else:
    print('No')
S = str(input("Word: ")).lower()
if S == "hi" * int(len(S) / 2) and 1 <= len(S) <= 10:
    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(len(S)-1):
    if S[i:i+2] != "hi":
        flag = False
        break
print("Yes" if flag else "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=list(input())
tmp=""
ans="No"
for s in S:
    if(tmp==""):
        tmp=s
    else:
        if(s=='i' and tmp=='h'):
            ans="Yes"
            tmp=''
        else:
            ans="No"
            break
print(ans)
S=input()
N=len(S)
n1=0
n2=0
for i in range(N):
 if S[i]=="h":
  n1=n1+1
 if S[i]=="i":
  n2=n2+1

if (n1==n2)and(n1==N/2):
 print("Yes")
else:
 print("No")
string = input()
flag = True
 
num = len(string)
if num % 2 == 0:
  for i in range(num //  2 - 1):
    if string[2*i:2*(i+1)] != "hi":
      flag = False
      break
else:
  flag = False
 
if flag:
  print("Yes")
else:
  print("No")
S = input()

def main(S):

    for i, s in enumerate(S):

        if i % 2 == 0:
            if s == 'h': continue
            else       : return "No"
        
        else:
            if s == 'i': continue
            else       : return "No"

    else: return "Yes"
    

if __name__ == "__main__":

    answer = main(S)
    print(answer)
S = input()

if S.count('h') == S.count('i') and S.count('i') == S.count('hi'):
    print('Yes')
else:
    print('No')
s = input()
s.replace('hi', '')
if s:
  print('No')
else:
  print('Yes')
s = input()
a='hi'
b=0
for n in range(4):
	if s==a*(n+1):
		print("Yes")
		b=1
if b!=1:
	print("No")
s=input()
n=len(s)
if n<=1:
  print("No")
  exit()
if s=="hi":
  print("Yes")
  exit()
for i in range(n-1):
  if s[i]=="h" and s[i+1]=="i":
    if i==0 and s[i+2]!="i":
      print("Yes")
      exit()
    if i==n-1 and s[i-1]!="h":
      print("Yes")
      exit()
    if s[i-1]!="h" and s[i+2]!="i":
      print("Yes")
      exit()
print("No")
S = input()
if "hi" in S:
    print("Yes")
else:
    print("No")
S = str(input())
for i,s in enumerate(S):
    if i % 2 == 1:
        if not s == "i":
            print("No")
            exit()
    else:
        if not s == "h":
            print("Ño")
            exit()
print("Yes")
S = input()
List = list(S)
ans = 1
h = 0

for i in range(len(List)):
  a = List[i]
  if a == "h":
    h = 1
  elif h == 1 and a == "i":
    h = 0
  else:
    ans = 0

if ans == 1:
  print("Yes")
else:
  print("No")
import sys
s = input()
for x, y in zip(s, s[1:]):
  if x == 'h' and y == 'i':
    print('Yes')
    sys.exit()
print('No')
print('YNeos'['hihihihihi'.startswith(input())^1::2])
#!/usr/bin/env python3
S = input()
if 'hi' in S:print('Yes')
else: print('No')
s=input()
print('Yes' if 'hi' in s else 'No')
def solve():
  s=list(input())
  for i in range(len(s)):
      if (i%2==0 and s[i]!='h'):
          print("No")
          return
      elif(i%2==1 and s[i]!='i'):
          print("No")
          return
  print("Yes")

solve()
s = input()
if 'hi' not in s:
    print('No')
elif 'hi' in s and 'hii' in s:
    print('Yes')
else:
    print('No')
s = input()
if 'hi' in s:
    print('Yes')
else:
    print('No')
text = input()
answer = "No"
#print(text)
if "hi" in text:
    if "ii" in text:
        answer = "No"
    elif "hh" in text:
        answer = "No"
    else:
        answer = "Yes"

print(answer)
def solve():
    s = input()
    s = s.replace('hi', '00')
    if len(s) == 1:
        return 'No'
    if len(s) == 2:
        return 'Yes' if s == '00' else 'No'
    # 3以上
    ans = 'No'
    for i in range(len(s)-2):
        if s[i] + s[i+1] == '00' and s[i+2] != 'i':
            ans = 'Yes'
            
    if s[-1] + s[-2] == '00':
        ans = 'Yes'
    
    return ans

print(solve())
n = raw_input()

if 'hii' in n:
  print("No")
elif 'hhi' in n:
  print("No")
elif 'hihi' in n:
  print("Yes")
elif 'hi' in n:
  print("Yes")
else:
  print("No")
S=str(input())

if ('hii' in S):
    print('No')
elif ('hi' in S):
    print('Yes')
else:
    print('No')
S=input()
N=len(S)
n1=0
n2=0
for i in range(N):
 if S[i]=="h":
  n1=n1+1
 if S[i]=="i":
  n2=n2+1

if (n1==n2)and(n1+n2==N):
 print("Yes")
else:
 print("No")
S = str(input())
hitachi = "Yes"
for i in range(len(S)):
    if i%2 == 0:
        if S[i] == "h":
            pass
        else:
            hitachi = "No"
    else:
        if S[i] == "i":
            pass
        else:
            hitachi = "No"
if S=="h":
    hitachi = "No"
print(hitachi)
hi = "hi"
S = input()

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


if 'hi' in s:
  ans = 'Yes'

print(ans)
s = input()

if len(s)%2 != 0:
    print('No')
else:
    for x in range(0,len(s), 2):
        if s[x:x+2] != 'hi':
            print('No')
            exit()
print('Yes')
s = input()

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

if flag:
    print("Yes")
else:
    print("No")
S = input().rstrip()
if 'hi' in S:
    print('Yes')
else:
    print('No')
# inputs = list(map(int, (input().split())))

a = input()

hi = "hi"

for i in range(5):
    if a == hi:
        print("Yes")
        exit(0)
    hi = hi + hi
print("No")
S = input()

if len(S) == 2:
  if S == 'hi':
    print('Yes')
  else:
    print('No')
else:
  flag = 0
  i = 0
  while i < len(S)-1:
    if S[i:i+2] == 'hi':
      flag = 1
    else:
      flag = 0
      break
    i += 2
  if flag == 1:
    print('Yes')
  else:
    print('No')
n = raw_input()

if 'hii' in n:
  print("No")
elif 'hi' in n:
  print("Yes")
else:
  print("No")
a = input()
ok = True
for i in range(len(a)//2, 2):
    if a[i:i + 2] != "hi":
        ok = False
        break

if ok:
    print("Yes")
else:
    print("No")
def main():
 S = str(input())

 if 'hi' in S:
   print('Yes')
 else:
  print('No')

if __name__ == "__main__":
  main()
s = input()
n = len(s)
pr =s[0]
ls = ["h","i"]
cnt = 0
for i in range(n):
    pr = s[i]
    if pr == ls[cnt]:
        pass
        cnt = (cnt+1)%2
    else:
        print("No")
        break
else:
    print("Yes")
S = input()
if S.count('hi') is 0 or S.count('hi') > 10:
    print('No')
print('Yes')
S = input()

q = ["h", "i"]
ans = True
for i in range(len(S)):
    if q[i%2] != S[i]:
        ans = False

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

n = list(s)

if n == ["h", "i"]:
    print("Yes")

else:
    print("No")
s = input()

n = list(set((s)))
print(n)

if n == ["h", "i"] or ["i", "h"]:
    print("Yes")

else:
    print("No")
S=input()
h="hi"
for i in range(5):
  if h*i==S:
    print("Yes")
    break
else:
  print("No")
S = input()
flg = False
if len(S) < 2:
  print('No')
else:
  for i in range(len(S)-1):
    if S[i:i+2] == 'hi':
      print('Yes')
      flg = True
      break
  if not flg:
    print('No')
import sys; sys.setrecursionlimit(2147483647); input = sys.stdin.readline
from math import floor, ceil, sqrt, factorial, log
from collections import Counter, defaultdict, deque
from operator import itemgetter
INF = float('inf'); MOD = 10**9+7
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(MI())
def LIR(n): return [LI() for i in range(n)]
def IS(): return input().rstrip()

def main():
    S = IS()
    if 'hi' in S:
        print('Yes')
    else: print('No')

if __name__ == '__main__':
    main()
#!/usr/bin/env python3
import re


def main():
    S = input()
    if re.match(r'(?:hi)+', S):
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()
S = str(input())
ans = 0
if len(S) == 1:
    print('No')
    ans = 1
for i in range(len(S)-1):
    if S[i] == 'h' and S[i+1] != 'i':
        print('No')
        ans = 1
        break
if ans == 0:
    print('Yes')
n = input()
flag = True
for i in range(len(n)-1):
    if i % 2 == 0 and n[i] == 'h' and n[i+1] == 'i':
        continue
    elif i % 2 == 1 and n[i] == 'i' and n[i+1] == 'h':
        continue
    else:
        flag = False
        break
if flag:
    print('Yes')
else:
    print('No')
a=input()
ans="No"

for i in range(1,len(a)):
	if a[i-1]+a[i]=="hi":
		ans="Yes"
	else:
		ans="No"
		break
print(ans)
str = input()
str = str.lower()
yes = True
for i in range(len(str)):
  print(i % 2 == 0 and str[i] != 'h', i % 2 == 1 and str[i] != 'i')
  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")
import re

try:
  s = input()
except:
  print("No")
  
s = s.replace('hii', '')
print(s)
if "hii" in s:
  print("No")
else:
  if "hi" in s:
    print("Yes")
  else: print("No")
while True:
    s = input()
    if 1 <= len(s) <= 10:
        break

flag = False
for l in range(len(s)-2):
    if s[l]=="h" and s[l+1]=="i" and s[l+2]!="i":
        print("Yes")
        flag = True
        break
    
if flag == False:
    print("No")
s = input()
flg = 0
for i in range(len(s)):
    if s[i] == 'h':
        if s[i+1] =='i':
            print('Yes')
            flg = 1
            break
        else:
            continue
if flg == 0:
    print('No')
S = input()

def getHi(S):
    for i in range(0, len(S)-2, 2):
        if S[i] + S[i+1] != "hi":
            return"No"
    return "Yes"

print(getHi(S))
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()
a=0
for i in range(len(S)-1):
    if (S[i]=="h") and (S[i+1]=="i"):
        a+=1
if a==0:
    print("No")
else:
    print("Yes")
s = input()
for i in range(len(s)):
	if not (i%2==1 and s[i] == "i" or i%2==0 and s[i] == "h"):
		print("No")
		exit()

print("Yes")
s = input()
r = 'Yes'
for i in range(0, len(s) - 1, 2):
    if s[i] != 'h' or s[i + 1] != 'i':
        r = 'No'
        break
print(r)
s=input()
s1=set(list(s[::2]))
s2=set(list(s[1::2]))
if len(s1)==1 and len(s2)==1 and "h" in s1 and "i" in s2:
    print("Yes")
else:
    print("No")
s = input()

hi = True
for i in range(len(s)):
  if i % 2 == 0 and s[i] != "h":
    hi = False
    break
  elif i % 2 == 1 and s[i] != "i":
    hi = False
    break
    
if hi:
  print("Yes")
else:
  print("No")
s = input().split("hi")


if len(set(s)) == 1:
  print("Yes")
else:
  print("No")
a = input()
ok = True
for i in range(0, len(a)//2 + 2, 2):
    if a[i:i + 2] != "hi":
        ok = False
        break

if ok:
    print("Yes")
else:
    print("No")
h = input()
if "hi" in h:
    print("No")
elif len(h.replace("hi","")) < len(h):
    print("Yes")
else:
    print("No")
#!/usr/bin/env python3

import sys
import math
import itertools

def main():
    s = sys.stdin.readline().strip()
    if len(s) == 0:
        print("No")
        return

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

if __name__ == '__main__':
    main()
s=input()
a=s.split('i')
flg = None
for i in a:
  if not i == 'hi':
    flg = False
    break
  else:
    flg = True
if flg == False:
  print('No')
else:
  print('Yes')
a  = input()
import re
k = re.split('(..)',a)[1::2]
result = 'Yes'
for i in range(len(k)):
  if k[i] != 'hi':
    result = 'No'

if a == 'hii':
  print('No')
else:
  print(result)
S = input()
idx = 0
try:
    while True:
        idx = S.index('hi', idx)
        if idx == len(S)-2 or S[idx+1] != 'i':
            print('Yes')
            break     
        else:
            idx += 3
except:
    print('No')
s = input()

if "hi" in s:
    print("Yes")
else:
    print("No")
letter = input()
 
reve = 0
tr = 0
 
for kk in range(len(letter)):
    if letter[kk] == "i" and reve == 1:
        tr = 1
    elif letter[kk] == "h":
        reve = 1
    else:
        reve = 0
 
if tr == 1:
    print("Yes")
else:
    print("No")
S=input()
W=S.split("hi")
A = W.count('')
A =int(A)
if A==0:
  print("No")
else:
  print("Yes")
string = input()
flag = False

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

if flag:
  print("Yes")
else:
  print("No")
h=input()
h=list("hiipphii")

a=[i for i,x in enumerate(h) if x=="h"]
b=0

for j in a:
    if j+3<=len(h):
        if h[j+1]=="i" and h[j+2]!="i":
            b+=1
        continue
        
    else:
        if  "h" in  h[-2] and "i" in  h[-1]:
            b+=1
        continue
if b>0:
    print("Yes")
    
else:
    print("No")
S=input()
ans="No"
flg=0

if len(S) == 1:
  ans="No"
else:
  for i in range(len(S)):
    if flg==0:
      if S[i] == 'h':
        flg=1
      else:
        flg=2
        break
    elif flg==1:
      if S[i] == 'i':
        flg=0
      else:
        flg=2
        break
          
if flg==0:
  ans="Yes"
          
print(ans)
S = input()
S = S.replace('hii', '')
if 'hi' in S:
    print('Yes')
else:
    print('No')
w = input()

if 'hi' in w:
    print('Yes')
else:
    print('No')
input_line = input()
input_num = len(input_line)
ans = 'Yes'
num = 0
for i in range(input_num):
  if num == 0:
    if input_line[i] == 'h':
      if i + 1 < input_num:
        if input_line[i + 1] == 'i':
          num = 1
        else:
          ans = 'No'
          break
    else:
      ans = 'No'
      break
  else:
    num = 0
print(ans)
tgt = str(input())

if 'hi' in tgt:
  print("Yes")
else:
  print("No")
s=input()
if s.count('hi')>=1:
    print('Yes')
else:
    print('No')
s = str(input())
kekka = 1
for i in range(len(s)):
  if i%2 == 0 and s[i] != 'h':
    kekka = -1
    break
  elif i%2 == 1 and s[i] != 'i':
    kekka = -1
    break
if kekka == 1 and s != 'h':
  print('Yes')
else:
  print('No')
if ("hi" in input()):
  print("Yes")
else:
  print("No")
import sys

s = input()
if len(s) % 2 != 0:
  print('No')

for i in range(0,len(s),2):
  if s[i:(i+2)] != 'hi':
    print('No')
    sys.exit()
    
print('Yes')
s=list(input())
for i in range(len(s)):
  if i==len(s)-1:
      print("No")  
  elif s[i]=="h"and s[i+1]=="i":#h a i len(s)=3 range(len(s))=range(3)=[0,1,2] len(s)-1=2
    print("Yes")
    break
  else:
      continue
s = input()

if s == "hi" or s== "hihi" or s== "hihihi" or s =="hiihihihi" or s =="hihihihihi":
    print("Yes")
else:
    print("No")
S = input()
count = 0
for i in range(len(S)-1):
  if S[i] == 'h' and S[i+1] == 'i':
    count = 1
if count == 1:
  print('Yes')
else:
  print('No')
def solve():
  s=list(input())
  for i in range(len(s)-1):
      if not ((s[i]=='h' and s[i+1]=='i') or (s[i]=='i' and s[i+1]=='h')):
          print("no")
          return
  print("Yes")

solve()
S = input()
if 'hii' in S:
    print('No')
elif 'hi' in S:
    print('Yes')
else:
    print('No')
S = str(input())
hitachi = "Yes"
for i in range(len(S)):
    if i%2 == 0:
        if S[i] == "h":
            pass
        else:
            hitachi = "No"
    else:
        if S[i] == "i":
            pass
        else:
            hitachi = "No"
print(hitachi)
s=input()
for i in range(len(s)):
    if i%2==0 and s[i]!='h':
        print("No")
        exit()
    if i%2==1 and s[i]!='i':
        print("No")
        exit()
print("Yes")
a = input()
if "hi" in a:
    print ("Yes")
else:
    print("No")
s = input()

a = s.count('hi')

if a >= 1:
    print('Yes')
elif a == 0:
    print('No')
large_s = input()

con = 0
str_check = ""
for i in range(len(large_s)):
    z = large_s.find('hi', con, len(large_s))
    if (0 <= z):
        print(z)
        str_check += str(z)
        con += 2

if (str_check=='0' or str_check=='02' or str_check=='024' or str_check=='0246' or str_check=='02468'):
    print("YES")
S = str(input())
ans = 0
if len(S) == 1:
    print('No')
    ans = 1
if S[-1] == 'h' and ans == 0:
    print('No')
    ans = 1
for i in range(len(S)-1):
    if S[i] == 'h' and S[i+1] != 'i' and ans == 0:
        print('No')
        ans = 1
        break
if ans == 0:
    print('Yes')
s = input()
result = 'No'
start = -2
end = -2
for i, c in enumerate(s):
  #print(i, c)
  if c == 'h':
    start = i
  elif c == 'i' and i == (start + 1):
    result = 'Yes'
    end = i
  elif c == 'i' and i == (end + 1):
    result = 'No'

print(result)
s = input()
print('Yes' if 'hi' in s else 'No')
s = str(input())
if len(s)%2 != 0:
  print("No")
  exit()
for i in range(len(s)//2):
  if s[i:i+2] != "hi":
    print("No")
    exit()
print("Yes")
s = input()

flg = 0
for i in range(len(s)-1):


    if s[i] == 'h' and s[i+1] == 'i':
        print('Yes')
        exit()


print('No')
str = input()

if "hi" in str:
  print("Yes")
else:
  print("No")
S=str(input())


if S in 'hii' and S in 'hi':
    print('Yes')
elif S in 'hii':
    print('No')
elif S in 'hi':
    print('Yes')
else:
    print('No')
s = input()
ans = "Yes"
if len(s) %2 == 0:
  for i in range (len(s)):
    if i % 2 ==0 and s[i] != "h":
        ans = "No"
        break
    elif i % 2 ==1 and s[i] != "i":
        ans = "No"
        break
print(ans)
S = str(input())

if S == 'hi' or S == 'hihi' or S == 'hihihi' or S == 'hihihihi' or S == 'hihihihihihi':
    print ('Yes')
else:
    print ('No')
S = input()
count = 0
count_h = 0
count_i = 0
for i in range(len(S)-1):
  if S[i] == 'h' and S[i+1] == 'i':
    count = 1
for i in range(len(S)):
  if S[i] == 'h':
    count_h = count_h+1
  elif S[i] == 'i':
    count_i = count_i+1
    
if count == 1 and len(S)%2 == 0 and count_h == count_i:
  print('Yes')
else:
  print('No')
S = input()

s_hitachi = list("hitachi")

ans = []
for i in range(len(s_hitachi)):
  ans.append("".join(s_hitachi[0:i+1]))
  

if S in ans:
  print("Yes")
else:
  print("No")
x = []
x = input()

y = 0

for i in range(len(x)):
    if x[i] != 'h' and x[i] != 'i':
        y = 0
        break
    if len(x) % 2 != 0:
        break
    if x[i:i + 2] == "hi":
        y = 1
    else:
        pass

if y == 1:
    print("Yes")
else:
    print("No")
s=input()
a=0
b=0
for i in range(len(s)):
  if s[i]=='h':
    a+=1
  if s[i]=='i':
    b+=1
if a==b:
  print('Yes')
else:
  print('No')
import re
if re.match ("(hi+)", input()):
    print ("Yes")
else:
    print ("No")
S = input() 
if 'hi' or 'hihi' or 'hihihihi' or 'hihihihihi':
  print('Yes')
else:
  print('No')
s = input()

ans = False
for i in range(len(s) - 3):
    if s[i:i + 2] == s[i + 2:i + 4]:
        ans = True

if ans:
    print('Yes')
else:
    print('No')
# -*- coding: utf-8 -*-
s = input()

f = True
for c in s[0::2]:
    if c != 'h':
        f = False

for c in s[1::2]:
    if c != 'i':
        f = False

if f:
    print('Yes')
else:
    print('No')
# A - Hitachi String
def main():
    S = input().rstrip()
    print("Yes" if "hi" in S else "No")


if __name__ == "__main__":
    main()
s = input()
check = "hi"
if check in s:
  print("Yes")
else:
  print("No")
s = input()

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

if S.count("hi") == (len(S)//2):
    print("Yes")
else:
    print("No")
s = list(input())
if s[::2].count('h') == len(s[::2]) and s[1::2].count('i') == len(s[1::2]):
    print('Yes')
else:
    print('No')
s = input()
cnt = s.count('hi')
if cnt > 0:
    print('Yes')
else:
    print('No')
S = input()
if 'hii' in S:
  S.replace("hii", "")
cout = S.count('hi')
if cout > 0:
  print('Yes')
else:
  print('No')
class Solution(object):
	def is_hitachi_string(self, string):

		if len(string) == 0:
			print 'No'
			return

		hi_str = 'hi'
		hi_idx = 0
		for idx in xrange(len(string)):
			if string[idx] != hi_str[hi_idx]:
				print 'No'
				return

			hi_idx = (hi_idx + 1) % 2

		if hi_idx == 0:
			print 'Yes'
		else:
			print 'No'
s = list(input())

for i in range(len(s)):
    if i % 2 == 0:
        if s[i] == "h":
            continue
        else:
            print("No")
            exit()
    else:
        if s[i] == "i":
            continue
        else:
            print("No")
            exit()
else:
    print("Yes")
import re
s = input()
isHitachi = re.search("(hi)+", s)
if isHitachi:
  print("Yes")
else:
  print("No")
S = input()
hitachi = ["hi"*i for i in range(1,5)]

if S in hitachi:
    print("Yes")
else:
    print("No")
S = input()
a = S.count("hi")
b = S.count("hii")
c = S.count("ha")
if a > 0 and b == c == 0 :
    print("Yes")
else:
    print("No")
s = input()
ans = 'Yes'
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)
import re
import sys
s = input()
l = re.split('(..)', s)[1::2]

judge = [c=="hi" for c in l]
if len(l) == 0:
  print("No")
  sys.exit()
  
if len(l) %2 != 0:
  print("No")
  sys.exit()
  
if all(judge):
  print("Yes")
else:
  print("No")
import sys

sys.setrecursionlimit(10 ** 8)

input = sys.stdin.readline


def main():
    S = input().strip()
    if S.count("hi") > 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
s = str(input())
if 'hii' in s:
    print("No")
elif '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 s =="hihi"or s == "hihihi"  or s=="hihihihihi" or s== "hihihihihihi":
    print("Yes")
else:
    print("No")
S = input()
S.replace("hi", "")
if S == "":
    print("No")
else:
    print("Yes")
def main():
    S = input()
    if "hi" in S:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
S = list(input())
ans = "No"
for i in range(len(S)):
    if ("".join(S[i:i+2]) == "hi"):
        ans = "Yes"
        break

print(ans)
s = str(input())

h = False

for c in s:
    if c == 'h':
        h = True
    if c == 'i' and h:
        print("Yes")
        exit()
print("No")
def main():
    s = input()

    if 'hi' in s:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()
a = input()
if "hi" in a:
    print("Yes")
else:
    print("No")
hitachi = list(input())

if len(hitachi) % 2 == 1:
    print("NO")

else:
    H = True
    for i in range(len(hitachi)):
        if i % 2 == 0:
            if hitachi[i] != "h":
                H = False
        else:
            if hitachi[i] != "i":
                H = False

    if H == True:
        print("YES")
    else:
        print("NO")