peterverebics/CodeNet_Python_118 huggingface dataset:
S = input()

if len(S) % 2 != 0:
    print('No')
    exit()

tmp = [S[i:i+2] for i in range(0, len(S), 2)]

for s in tmp:
    if s != 'hi':
        print('No')
        exit()

print('Yes')
S={"hi"*i for i in range(1,6)}
if input() in 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')
S = input()
def is_hitachi(S):
    hitachi = [
        'hi',
        'hihi',
        'hihihi',
        'hihihihi',
        'hihihihihi',
    ]
    if S in hitachi:
        return 'Yes'
    else:
        return 'No'

print(is_hitachi(S))
S=list(input())
while len(S)>1:
    if S[0] == 'h' and S[1] == 'i':
        S.remove('h')
        S.remove('i')
    else:   
        break

if len(S) == 0:
    print('Yes')
else:
    print('No')
s=input()
s=s.replace("hi","").replace("hihi","").replace("hihihi","").replace("hihihihi","").replace("hihihihi","")
if s == "":
  print("Yes")
else:
  print("No")
from sys import stdin
import sys

def getInputs():
	inputs=[]
	for line in stdin:
		line=line.split()
		inputs.append(line)
	return inputs



def main(inputs):
	s=inputs[0][0]
	if len(s)%2==1:
		print("No")
		sys.exit(0)
	
	ok=True
	for i in range(0, len(s), 2):
		sub=s[i:i+2]
		if sub!="hi":
			ok=False
	if ok:
		print("Yes")
	else:
		print("No")
		
	

if __name__=="__main__":
	inputs=getInputs()
# 	inputs=simInputs()
	main(inputs)
s = input()
ans = s.split('hi')
if ''.join(ans) == '':
  print('Yes')
else:
  print('No')
s = input()
hi = "hi"
if s == "hi" * (len(s)//2):
    print("Yes")
else:
    print("No")
l=input().split("hi")
s="".join(l)
if s=="":
  print("Yes")
else:
  print("No")
s = input()
ans = "Yes"
if len(s) % 2 != 0:
  ans = "No"
else:
  for i in range(len(s)//2):
    if s[i*2] != "h" or s[i*2+1] != "i":
      ans = "No"
      break
print(ans)
s = input();    l = len(s)
if l%2==0:
    a = 'hi'*(l//2)
    if a== s:    print('Yes')
    else:    print('No')
else:    print('No')
S = input()

HI = ['hi','hihi','hihihi','hihihihi','hihihihihi',]
if S in HI:
    print('Yes')
else:
    print('No')
S = str(input())
l = len(S)
if l%2 == 1:
    print("No")
else:
    k = 1
    for i in range (l//2):
        if S[2*i] != "h":
            k = 0
        if S [2*i + 1] != "i":
            k = 0
    if k == 0:
        print("No")
    else:
        print("Yes")
s = input()

hitachi = 'hi'

for i in range(5):
    if s == hitachi:
        print('Yes')
        exit()
    hitachi += 'hi'

print('No')
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys

s=input()

l = len(s)

if (l % 2 != 0):
    print('No')
    sys.exit()

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

print('Yes')
s=input()
x=len(s) // 2
a=x*'hi'
if a == s:
  print('Yes')
else:
  print('No')
s=input()
if len(s)%2!=0:
    print('No')
    exit()
else:
    for i in range(len(s)//2):
        if not (s[2*i]=='h' and s[2*i+1]=='i'):
            print('No')
            exit()
    print('Yes')
import sys

S = input()

if len(S) % 2 != 0:
    print('No')
else:
    for i in range(0, len(S), 2):
        if S[i] != 'h' or S[i + 1] != 'i':
            print('No')
            sys.exit()
    print('Yes')
S = input()
if len(S) % 2 == 1:
  print("No")
else:
  while (len(S) != 0):
    if S[0] == 'h' and S[1] == 'i':
      S = S[2:]
    else:
      break
  if len(S) != 0:
    print("No")
  else:
    print("Yes")
import re
s=input()
if re.fullmatch(r'(hi)+',s):
    print("Yes")
else:
    print("No")
print("NYoe s"[input()in["hi"*x for x in range(6)]::2])
S = input()

result = 'No'
for i in range(1, 6):
    if S == 'hi' * i:
        result = 'Yes'
        break
print(result)
# -*- coding: utf-8 -*-
 
import math
import itertools
import sys
import copy
#import numpy as np
 
# 入力
#A, B, C, D = map(int, input().split())
#L = list(map(int, input().split()))
#S = list(str(input()))
#N = int(input())
#S = str(input())

S = str(input())

if len(S)%2 == 1 :
  print ("No")
  exit()
else :
  c = len(S)//2
  st = ""
  for _ in range(c) :
    st += "hi"
  if S == st :
    print ("Yes")
  else :
    print ("No")
S = input()
ans = S.replace("hi", "")

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

f = 0

for i in s:
    if i != "":
        f = 1
        break
    
if f == 0:
    print("Yes")
else:
    print("No")
from sys import stdin
import math

s = stdin.readline().rstrip()

flag = False
ss = ''
for i in range(10):
    ss += "hi"
    if s == ss:
        flag = True
        break

if flag:
    print("Yes")
else:
    print("No")
s = str(input().rstrip())
if s in ["hi"*x for x in range(1, 6)]:
    print("Yes")
else:
    print("No")
def main(s):
    if len(s)%2 != 0 :
        return False
    for i in range(len(s)):
        res = True
        if i%2 == 1:
            continue
        else:
            if s[i]!="h" or s[i+1]!="i":
                return False
    return res

s = input()
print("Yes" if main(s) else "No")
s = input()

c = 'hi' * int(len(s)/2)

if s == c:
   print('Yes')
else:
   print('No')
S=list(input())
tmp=""
ans="No"
for s in S:
    if(tmp==""):
        tmp=s
        ans="No"
    else:
        if(s=='i' and tmp=='h'):
            ans="Yes"
            tmp=''
        else:
            ans="No"
            break
print(ans)
S = input()
S_len = len(S)
if S_len % 2 != 0:
    print("No")
else:
    set_num = int(S_len // 2)
    for i in range(set_num):
        if S[i*2] != "h" or S[i*2 +1] != "i":
            hitachi = False
            break
        else:
            hitachi = True
    if hitachi == False:
        print("No")
    elif hitachi  == True:
        print("Yes")
import re
given = input()
answer = re.sub(r'hi', "*", given)
if len(set(answer)) == 1 and answer[0] == "*":
    print("Yes")
else:
    print("No")
s=input()
n=len(s)
p=0
if n%2==1:
    p=1
else:
    n2=n//2
    for i in range(n2):
        if s[i*2]!='h':
            p=1
        if s[i*2+1]!='i':
            p=1
if p==0:
    print('Yes')
else:
    print('No')
S = input()
if S.count("hi") > 0:
    num = S.count("hi")
    S = S.replace("hi", "", num)
    if len(S) == 0:
        print("Yes")
    else:
        print("No")
else:
    print("No")
s = input()

if len(s) % 2 == 0:
  for i in range(len(s) // 2):
    if s[2 * i] != "h" or s[2 * i + 1] != "i":
      print("No")
      break
  else:
    print("Yes")
else:
  print("No")
S = input()
if S.count("hi")*2 == len(S):
  print("Yes")
else:
  print("No")
import re
S = str(input())
res = re.sub("hi","", S)

if res == "":
    print("Yes")
else:
    print("No")
def resolve():
    S = input()
    for i in range(0, len(S), 2):
        if S[i:i+2] != 'hi':
            print("No")
            return

    print("Yes")
        

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

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

print('Yes' if len(s)//2==s.count('hi') else 'No')
str = input().split('i')
flag = True

for s in str[0:-1]:
  if(flag):
    if(s != 'h'):
      print('No')
      flag = False

if(flag):
  if(str[len(str)-1] != ''):
    print('No')
    flag = False
if(flag):
  print('Yes')
str_hi = input()
hi_num = int(len(str_hi) / 2)

if "hi" * hi_num == str_hi:
    print("Yes")
else:
    print("No")
S = input()
n = len(S)
s = "hi" * (n // 2)

if n % 2 == 0 and s == S:
    print("Yes")
else:
    print("No")
s = input()
if len(s) % 2 == 1:
  print("No")
  exit()

for i in range(0, len(s), 2):
  if s[i:i+2] != "hi":
    print("No")
    exit()
print("Yes")
s = input()

print("Yes" if len(s.replace("hi","")) == 0 else "No")
s=input()
n=len(s)
if n%2==1:
  print('No')
else:
  fail=0
  for i in range(n):
    if (s[i]!='h' and i%2==0) or (s[i]!='i' and i%2==1):
      fail=1
  if fail==0:
    print('Yes')
  else:
    print('No')
s = input()
s=s.replace("hi", "")
print("Yes" if s=="" else "No")
s = input()
hi = 'hi'
for i in range(1, 6):
    if hi * i == s:
        print('Yes')
        break
else:
    print('No')
s = input()
ans = "No"
kouho=["hi","hihi","hihihi","hihihihihi","hihihihi"]
if s in kouho:
    ans="Yes"
print(ans)
#def main(S, b):

if __name__ == '__main__':
    s = input()
    flag = 1
    while (len(s) > 0):
        if (s[:2] == "hi"):
            s = s[2:]
        else:
            flag = 0
            s = ""
    if (flag):
        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()
flag=True

if len(S)%2!=0:
  print("No")
else:
  for i in range(len(S)//2):
    if S[2*i]+S[2*i+1]=="hi":
      pass
    else:
      flag=False
      break
      
  if flag:
    print("Yes")
  else:
    print("No")
s=str(input())
a=len(s)
b=['hi','hihi','hihihi','hihihihi','hihihihihi']
if a%2!=0:
  print('No')
elif s in b:
  print('Yes')
else:
  print('No')
S = input()
hitachi = 'hi'
i = 1
 
while True:
    corect = hitachi * i
    if S == corect:
        print('Yes')
        break
    i += 1
    if i == 20:
        print('No')
        break
S = list(input())
if len(S) == 1:
  print("No")
  exit()
flg = True
for i, s in enumerate(S):
  if i%2 == 0:
    if s != "h":
      flg = False
  else:
    if s != "i":
      flg = False
if flg and len(S)%2 == 0:
  print("Yes")
else:
  print("No")
s = input()
t = s.replace('hi', '*')
if set(t) == {'*'}:
    print('Yes')
else:
    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
if last != "i":
    print("No")
    exit()
print("Yes")
exit()
n=input()
ans = True
for i in range(0, len(n), 2):
    if n[i: i+2] != "hi":
        ans = False

if ans:
    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()
a = len(s)//2
if s == "hi"*a:
    print("Yes")
else:
    print("No")
S = list(input())

if len(S)%2 != 0:
  print("No")
else:
  for i in range(len(S)):
    if (i%2 == 0 and S[i] != "h") or (i%2 == 1 and S[i] != "i"):
        print("No")
        break
  else:
   	print("Yes")
S = [s for s in input()]
h = 'hi'
if len(S)%2 != 0:
    print('No')
    exit()
flag = 1
while S:
    if len(S) >= 2:
        s1 = S.pop(0)
        s2 = S.pop(0)
        tmp = s1+s2
        if tmp == h:
            continue
        else:
            flag = 0
if flag:
    print('Yes')
else:
    print('No')
a=input()

if a=="hi"*(len(a)//2):
	print("Yes")
else:
	print("No")
S = list(input())
flag = True

if len(S) % 2 == 0:
  for i in range(0, len(S), 2):
    if S[i] == 'h' and S[i + 1] == 'i':
      pass
    else:
      flag = not flag
      break
else:
  flag = not flag

if flag:
  print("Yes")
else:
  print("No")
S = input()
D = 0

if len(S)%2 != 0:
    print("No")
    D = 1
    
else:
    for i in range(len(S)//2):
        if ((S[i * 2] == "h") & (S[(i * 2) + 1] == "i")) != True:
            print("No")
            D = 1
            break
        
if D == 0:
    print("Yes")
S = input()
ans = 'Yes'
for i in range(0,len(S),2):
    if S[i:i+2] != 'hi':
        ans = 'No'
        break
print(ans)
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 idx > 9:
				print 'No'
				return

			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'

if __name__ == '__main__':
	sol = Solution()
	string = raw_input()
	sol.is_hitachi_string(string)
s = input()
data = len(s)
s = list(s)
j = 0
for i in s:
  if j%2 == 0:
    if i != "h":
      break
  if j%2 == 1:
    if i != "i":
      break
  j += 1

      
if j == data and data%2 == 0:
  print("Yes")
else:
    print("No")
s = input()

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

for i in range(0, len(s)-1, 2):
    if s[i] + s[i+1] != "hi":
        print("No")
        exit()

print("Yes")
S= input()

if len(S) %2 != 0:
  print('No')
  exit()
number = len(S)//2
if 'hi'*number == S:
  print('Yes')
  exit()
print('No')
S = str(input())
if S in [ "hi"*x for x in range(1,6) ]:
    print("Yes")
else:
    print("No")
import collections

def main():
    s = str(input())

    if len(s) % 2 == 0:
        for i in range(len(s)//2):
            if s[0+2*i:2+2*i] != 'hi':
                print('No')
                break
    
        else:
            print('Yes')
    else:
        print('No')



if __name__ == '__main__':
    main()
print(["No","Yes"][input() in ["hi" * x for x in range(1,6)]])
s = input()
a = s.replace('hi', '')
if len(a)==0:
    print('Yes')
else:
    print('No')
s = input()
if "".join(s.split("hi")) == "":
  print("Yes")
else:
  print("No")
S = input()

ans={'hi','hihi','hihihi','hihihihi','hihihihihi'}

for i in ans:
    if i == S:
        print('Yes')
        exit()
print('No')
S = input()

HI = "hi"

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

text = input()

if text == "hi" or text == "hihi" or text == "hihihi" or text == "hihihihi" or text == "hihihihihi":
    print("Yes")
else:
    print("No")
S = input()
hitachi = [
    'hi',
    'hihi',
    'hihihi',
    'hihihihi',
    'hihihihihi',
]
if S in hitachi:
    print('Yes')
else:
    print('No')
#coding:utf-8

import queue



def main():
    s = input()
    t = ''
    for _ in range(10):
        t += 'hi'
        if t == s:
            print('Yes')
            break
    else:
        print('No')
    
if __name__ == '__main__':
    main()
s = input()
h = 'hi'
if s == h or s == h * 2 or s == h * 3 or s == h * 4 or s == h * 5:
    print('Yes')

else:
    print('No')
S = str(input())

S_len = len(S)
half_len = int(len(S)/2)

if S_len%2 != 0:
    print('No')
    exit()

for i in range(half_len):
    if S[2*i:2*i+2] != 'hi':
        print('No')
        exit()

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

s = s.replace('hi', '')
#print(s)
if s == '':
  print('Yes')
  exit()
print('No')
import sys
readline = sys.stdin.buffer.readline

S = readline().strip().decode('utf-8')
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()
s = s.replace("hi", "")
if s:
  print("No")
else:
  print("Yes")
s = input()
n = len(s)
for i in range(n):
    if i % 2 == 0:
        if s[i:i+2] != "hi":
            print("No")
            exit()
print("Yes")
s = input()
r = True
if len(s) % 2 == 0:
  for i in range(0, len(s)-1, 2):
    if s[i:i+2] != "hi":
      r = False
  print("Yes" if r else "No")
else :
  print("No")
s = input()
n = len(s)
if n % 2 == 1:
    print("No")
elif s.count("hi") == n // 2:
    print("Yes")
else:
    print("No")
# import sys
# import math
# import decimal
# import queue
# import bisect
# import heapq
# import time
# import itertools
# import collections # queue
# from fractions import Fraction

mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35

def main():
    s = input()
    if len(s)%2!=0:
        print('No')
        return
    for i in range(0,len(s),2):
        if s[i]!='h' or s[i+1]!='i':
            print('No')
            return
    print('Yes')
    return

if __name__=='__main__':
    main()
s = input()
hitachi = 'hi'
l = len(s) // 2
print('Yes' if hitachi*l == s else 'No')
S=str(input())
a=S.count('hi')
if a*2==len(S):
    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) % 2 == 1:
        print('No')
    else:
        print('Yes')
S = input()
if S.count("hi") == len(S)/2:
    print("Yes")
else:
    print("No")
S = input()

if S == "hi" * (len(S) // 2):
    print("Yes")
else:
    print("No")
s = input()
if len(s) %2 !=0:
  print("No")
else:
  c =0
  for i in range(len(s)//2):
    hi = s[2*i:2*i+2]
    if hi == "hi":
      pass
    else:
      c = 1
      break
  if c ==0:
    print("Yes")
    
  else:
    print("No")
S=input()

def No():
    print("No")
    exit()
def Yes():
    print("Yes")
    exit()
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()
S = input()

list_s = ["hi","hi"*2,"hi"*3,"hi"*4,"hi"*5]

if list_s.count(S) == 1:
  print("Yes")
else:
  print("No")
s = input()
n = len(s)
if n % 2:
    print('No')
    exit()

for i in range(0,n-1,2):
    if s[i:i+2] != 'hi':
        print('No')
        exit()
print('Yes')
if input() in ('hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi'):
    print('Yes')
else:
    print('No')
S = input()
for i in range(0, len(S), 2):
    if S[i:i+2] != "hi":
        print("No")
        break
else:
    print("Yes")
S = input()

if len(S)%2==0 and S=='hi'*(len(S)//2):
    print('Yes')
else:
    print('No')
S = input()

ans = 'Yes'
while S:
    if S.startswith('hi'):
        S = S[2:]
    else:
        ans = 'No'
        break

print(ans)
S = input()

if len(S) % 2 != 0:
    print("No")
else:
    N = int(len(S) / 2)

    flag = 0

    for indx in range(N):
        if ((S[indx * 2 + 0] != "h") or
            (S[indx * 2 + 1] != "i")):
            flag = 1

    if flag == 0:
        print("Yes")
    else:
        print("No")
S = input()
if S in ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi']:
    print('Yes')
else:
    print('No')
# print('input >>')
S = input()

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

else:
    print('No')

# print('-----output-----')
S = input()
print("Yes" if all(map(lambda x: x=="", S.split("hi"))) else "No")
def solve():
  s = input()
  n = len(s)
  if n%2 == 1:
    print("No")
  else:
    tmp = "hi"*(n//2)
    if s == tmp:
      print("Yes")
    else:
      print("No")
solve()
str = input()

if(len(str)%2 != 0):
    print("No")
    exit()
for i in range(len(str)):
    if(i % 2 == 0):
        if(str[i]!='h'):
            print("No")
            exit()
    if(i % 2 == 1):
        if(str[i]!='i'):
            print("No")
            exit()
print("Yes")
from sys import stdin
import math
import re
import queue

input = stdin.readline

MOD = 1000000007
INF = 122337203685477580

def solve():
    str = (input().rstrip())
    str = str.replace("hi","")
    if(len(str) == 0):
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    solve()
S = input()
if S == "hi" or S == "hihi" or S == "hihihi" or S == "hihihihi" or S == "hihihihihi" :
    print("Yes")
else:
    print("No")
a = input()
b = ['hi','hihi','hihihi','hihihihi','hihihihihi']

if a in b:
	print("Yes")
else:
	print("No")
s = ["hi","hihi","hihihi","hihihihi","hihihihihi"]
if input() in s:
    print("Yes")
else:
    print("No")
s = input()
s_len = len(s)
s_len = int(s_len / 2)
hi_str = "hi"
new_s = hi_str * s_len
if s == new_s:
    print("Yes")
else:
    print("No")
string = input()
if len(string)%2 != 0:
    print('No')
else:
    for i in range(0, len(string)-1, 2):
        if string[i:i+2] != 'hi':
            print('No')
            break
    else:
        print('Yes')
import re
S = str(input())
pattern = '^(hi)+$'

if re.match(pattern, S):
    print('Yes')
else:
    print('No')
s = list(input())

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

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")
S = str(input())
if len(S) & 1:
    print('No')
    exit(0)
A = ['h', 'i']
for i in range(0, len(S)):
    if S[i] != A[i % 2]:
        print('No')
        exit(0)
print('Yes')
s = input()
hitachi = ["hi" * i for i in range(1, 6)]
if s in hitachi:
  print("Yes")
else:
  print("No")
import sys

S=input().strip()

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

for i,word in enumerate(S):
  if (i%2==0 and word=="h") or (i%2==1 and word=="i"):
    continue
  else:
    print("No")
    break

else:
  print("Yes")
S = input()

while len(S) > 1:
    if S[0] =='h' and S[1] == 'i':
        S = S[2:]
    else:
        break
if len(S) ==0:
    print('Yes')
else:
    print('No')
q=input()
for i in range(7):
  s="hi"*i
  if s==q:
    print("Yes")
    exit()
print("No")
s=input()
a=0
if len(s)%2==1:
  a=1
for i in range(len(s)):
  if i%2==0:
    if s[i]!="h":
      a=1
  else:
    if s[i]!="i":
      a=1
if a==0:
  print("Yes")
else:
  print("No")
S=str(input())

cnt=0
for i in range(len(S)):
	if i%2==0:
		if S[i]=='h':
			cnt+=1
		else:
			break
	else:
		if S[i]=='i':
			cnt+=1
		else:
			break
if cnt==len(S) and len(S)%2==0:
	print('Yes')
else:
	print('No')
S = input()
ans = 'Yes'
if len(S)%2 != 0:
    print('No')
    exit()
for i in range(0,len(S),2):
    if S[i] != 'h':
        print('No')
        exit()
    if S[i+1] != 'i':
        print('No')
        exit()
print('Yes')
import sys

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

s = ns()
for i in range(1,10):
    if s == 'hi'*i:
        print('Yes')
        break
else:
    print('No')
S = str(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
if len(S) %2 != 0:
  ans = 'No'
    
print(ans)
S = input()

a = len(S)
if a%2==1:
  print("No")
  exit()
for i in range(0,a,2):
  if S[i:i+2]!="hi":
    print("No")
    break
  else:
    print("Yes")
    break
S = input()
if S == 'hi' or S == 'hihi' or S == 'hihihi' or S == 'hihihihi' or S == 'hihihihihi':
  print('Yes')
else:
  print('No')
import re
text = input()
if re.fullmatch('(hi)+', text) != None:
    print('Yes')
else:
    print('No')
s = input()
l = len(s)
if l % 2 == 1:
  print('No')
else:
  l //= 2
  for i in range(l):
    if s[2*i:2*i+2] != 'hi':
      print('No')
      break
  else:
    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()
a=[str(c) for c in s]
if len(a)%2!=0:
    print("No")
    exit()
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")
if input().replace('hi',''):
  print('No')
else:
  print('Yes')
import re
s = input()
ans = 'Yes'
s = re.split('(..)', s)[1::]
s = [x for x in s if x != '']
for c in s:
    if c == 'hi': continue
    ans = 'No'
    break
if len(s) == 0: ans = 'No'
print(ans)
S = input()
print("Yes" if len(S) == 2*S.count("hi") else "No")
def main():
    s = input()

    for i in range(0, len(s), 2):
        if s[i:i+2] != 'hi':
            print('No')
            exit()

    print('Yes')

if __name__ == "__main__":
    main()
S = input()
flg = True
while flg and len(S) >= 1:
    flg = (S[:2] == 'hi')
    S = S[2:]
print('Yes' if flg else 'No')
s = input()

if len(s.replace('hi',''))==0:
  print("Yes")
else:
  print("No")
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    S=input()
    N=len(S)
    f=0
    if S.count("hi") == N//2 and N%2==0:
        f=1 
    if f==1:
        print("Yes")
    else:
        print("No")

main()
s=input()
if len(s)%2!=0:
    print("No")
else:
    ans="Yes"
    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)
import re
s = input()
bl = re.fullmatch(r"^(hi)+$", s) is not None
print("Yes" if bl else "No")