Problem:
 Score : 100 points    Problem Statement  A Hitachi string is a concatenation of one or more copies of the string hi .  For example, hi and hihi are Hitachi strings, while ha and hii are not.  Given a string S , determine whether S is a Hitachi string.      Constraints   The length of S is between 1 and 10 (inclusive).  S is a string consisting of lowercase English letters.         Input  Input is given from Standard Input in the following format:  S       Output  If S is a Hitachi string, print Yes ; otherwise, print No .        Sample Input 1 hihi      Sample Output 1 Yes  hihi is the concatenation of two copies of hi , so it is a Hitachi string.       Sample Input 2 hi      Sample Output 2 Yes       Sample Input 3 ha      Sample Output 3 No

Solution (Python):
S = input()

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

print("No")

Solution (Python):
s = input()
oza = 'hi'
flag = 0
for i in range(0,len(s),2):
    if s[i:i+2] == oza:
        continue
    else:
        flag = 1
        print('No')
        break
if flag == 0:
    print('Yes')

Solution (Python):





S = input()
n = len(S)
judge = True
if n % 2 != 0:
    print("No")
    exit()
for i in range(0, n, 2):
    if S[i] != "h" or S[i+1] != "i":
        judge = False
print("Yes") if judge else print("No")

Solution (Python):
S = input()

List = ['hihi', 'hi', 'hihihi', 'hihihihi', 'hihihihihi']

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

Solution (Python):
import re
s = input()
if s == "hi" or s=="hihi" or s=="hihihi" or s=="hihihihi" or s== "hihihihihi": 
    print("Yes")
else:
    print("No")

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

Solution (Python):
S = input()
n=0

for i in range(len(S)//2):
  if S[2*i]+S[2*i+1]=="hi":
    n+=1
  
if n==len(S)/2:
  print("Yes")
else:print("No")

Solution (Python):

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

Solution (Python):
S = input()
ans = 'Yes'
if len(S)%2:
    ans = 'No'
else:
    for i, c in enumerate(S):
        if i%2 and c!='i':
            ans = 'No'
            break
        elif i%2 == 0 and c!='h':
            ans = 'No'
            break
print(ans)

Solution (Python):
S=input().replace("hi","")
print("Yes" if S=="" else "No")

Solution (Python):
S=input()
if S.count("hi")*2==len(S):
  print("Yes")
else:
  print("No")

Solution (Python):
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")

Solution (Python):
S = input()
hitachi_str = ['hi']
for i in range(0, 10):
  hitachi_str.append(hitachi_str[i] + 'hi')
print('Yes' if S in hitachi_str else 'No')

Solution (Python):
import sys

s = input()

while len(s) > 0:
    if len(s) == 1:
        print('No')
        sys.exit()
    else:
        if s[:2] == 'hi':
            s = s[2:]
        else:
            print('No')
            sys.exit()

print('Yes')

Solution (Python):
s=input()
i=len(s)//2
x='hi'*i
if s==x:
  print('Yes')
else:
  print('No')

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

Solution (Python):
S = input()
print('Yes' if S.replace('hi', '') == '' else 'No')

Solution (Python):
a = input()
b = ""
for i in range(int(len(a)/2)):
  b+="hi"
if a==b:
  print("Yes")
else:
  print("No")

Solution (Python):
import cmath
import sys

INF=10**18
MOD=10**9+7
MAX=10**5+7



def main():
  s=input()

  for i in range(6):
    if s=="hi"*i:
      print("Yes")
      return

  print("No")




if __name__=='__main__':
    main()

Solution (Python):
S = input()
hitachi = [
    'hi',
    'hihi',
    'hihihi',
    'hihihihi',
    'hihihihihi',
]
if S in hitachi:
    print('Yes')
else:
    print('No')

Solution (Python):
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()

Solution (Python):
S = input()
flag = 0
for i in range(len(S)):
	if i%2 == 0 and S[i] != 'h':
		flag = 1
	if i%2 == 1 and S[i] != 'i':
		flag = 1
if flag == 1 or len(S)%2 == 1:
	print('No')
else:
	print('Yes')

Solution (Python):
def find():
    a=input()
    c=a.split('hi')
    for i in c:
        if i!="":
            return "No"
    return "Yes"
print(find())

Solution (Python):
s = input()

flg = False
for i in range(1,6):
    if s == 'hi' *i:
        flg = True
        break
    
print('Yes' if flg else 'No')

Solution (Python):
s=input()
flag=True
for i in range(0,len(s),2):
  if "hi"==s[i:i+2]:
    continue
  else:
    flag=False
    break
if flag==True:
  print("Yes")
else:
  print("No")

Solution (Python):
import re
text = input()
if re.fullmatch('(hi)+', text) != None:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
for i in range(0, len(s), 2):
    if s[i:i+2] != 'hi':
        print('No')
        break
else:
    print('Yes')

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

Solution (Python):
string = input().strip()
hi_string = "hi" * (len(string)//2)
if string == hi_string:
  print("Yes")
else:
  print("No")

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

Solution (Python):
import sys
s = input()

def match(a):
  if a[0:2] == 'hi':
    return a[2:]
  else:
    print('No')
    sys.exit()
if len(s)%2 == 1:
  print('No')
  sys.exit()
else:
  while len(s) > 1:
    s = match(s)
  print('Yes')

Solution (Python):
S = input()

ans = 'Yes'
while len(S) > 0:
  if S[:2] == 'hi':
    S = S[2:]
  else:
    ans = 'No'
    break

print(ans)

Solution (Python):
s=str(input())

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

Solution (Python):



c = {"hi", "hihi", "hihihi", "hihihihi", "hihihihihi"}

def main():
    s = input().strip()
    ans = s in c
    print("Yes" if ans else "No")


if __name__ == '__main__':
    main()

Solution (Python):
s = input()

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

Solution (Python):
import re
print("No" if re.fullmatch("(hi)+",input())==None else "Yes")

Solution (Python):
if input() in ['hi' * i for i in range(20)]:
    print('Yes')
else:
    print('No')

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

Solution (Python):

s = input()

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

if s == "hi"* (len(s) // 2):
	print('Yes')
else:
	print('No')

Solution (Python):
S = list(input())
n = len(S)
c = 0
if n%2 ==1:
    print("No")
else:
    for i in range(n-1):
        if S[i] == "h" and S[i+1] == "i":
            c = c+1
    if c == int(n/2):
        print("Yes")
    else:
        print("No")

Solution (Python):

S = str(input())


if __name__ == "__main__":
    def func():
        h_pointer = False
        i_pointer = False
        check = True

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

        for i in range(0, len(S) ):
            if(h_pointer and i_pointer == False and S[i] == "i"):
                h_pointer = False

            elif(h_pointer == False and i_pointer == False and S[i] == "h"):
                h_pointer = True
            else:
                print('No')
                check = False
                break
            
            


        if check: 
            print('Yes')
    
    func()

Solution (Python):
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")

Solution (Python):
s = input()

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

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

print("Yes")

Solution (Python):
S = input()
flag = 0

if len(S)%2 == 1:
    print('No')
    exit()
else:
    for i in range(len(S)//2):
        if S[i*2:i*2+2] != 'hi':
            flag = 1

if flag == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
import re
print('Yes' if re.match(r'^(hi)+$', S) else 'No')

Solution (Python):
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()

Solution (Python):
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')

Solution (Python):
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')

Solution (Python):
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 == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
if s.count('hi')*2==len(s):
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
test = S.split("hi")
rest = ''
for i in test:
  rest += i

if rest == '':
  print('Yes')
else:
  print('No')

Solution (Python):
import re

S=input()

pattern = '^(hi)+$'

result = re.match(pattern, S)

if result:
	print('Yes')
else:
	print('No')

Solution (Python):
s = input()
if (s.count("hi")*2 == len(s)):
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
for i in range(0, len(s), 2):
    if s[i:i+2] != 'hi':
        print('No')
        break
else:
    print('Yes')

Solution (Python):
import sys
import math
from collections import defaultdict
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

mod = 10**9 + 7

def I(): return int(input())
def LI(): return list(map(int, input().split()))
def LIR(row,col):
    if row <= 0:
        return [[] for _ in range(col)]
    elif col == 1:
        return [I() for _ in range(row)]
    else:
        read_all = [LI() for _ in range(row)]
        return map(list, zip(*read_all))



S = str(input())

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

Solution (Python):
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')

Solution (Python):
s = input()
s=s.replace("hi", "")
print("Yes" if s=="" else "No")

Solution (Python):
s = input()

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

print('No')

Solution (Python):
import sys
import re

stri = sys.stdin.readline()
ret = re.match( '^(hi)+$', stri)
if ret:
	print("Yes")
else:
	print("No")
sys.stdout.flush()

Solution (Python):



n = input()
if len(n)%2:
  print('No')
else:
  s = ''
  for i in range(len(n)//2):
    s += 'hi'
  if s == n:
    print('Yes')
  else:
    print('No')

Solution (Python):
S = input()


flg = True

for i in range(len(S)):
    if flg == True and S[i] == "h":
        flg = False
        continue
    elif flg == False and S[i] == "i":
        flg = True
        continue
    else:
        print("No")
        break
else:
    if flg == False:
        print("No")
    else:
        print("Yes")

Solution (Python):
s = input()

hitachi = ""
flag = False

for i in range(5):
    hitachi += "hi"
    if hitachi == s:
        print("Yes")
        flag = True
        break

if flag == False:
    print("No")

Solution (Python):
S=input()
L=["hi","hihi","hihihi","hihihihi","hihihihihi"]
for i in L:
	if i==S:
		print("Yes")
		exit()
print("No")

Solution (Python):
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')

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,copy,functools
import time,random

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
mod2 = 998244353
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    s = S()
    t = "".join(s.split("hi"))
    if t == "":
        return "Yes"

    return "No"


print(main())

Solution (Python):
import re

s = re.sub('(hi)+','',input())

print('No' if s else 'Yes')

Solution (Python):
s=list(input())
f=1
for i in range(len(s)):
    if i%2 and s[i]!="i":
        f=0
    elif i%2==0 and s[i]!="h":
        f=0
    elif s[0]!="h" or s[-1]!="i":
        f=0
print("Yes" if f else "No")

Solution (Python):
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)

Solution (Python):
text = input()

def checkHitachi(text):
  
  if (len(text)%2 != 0): 
    return 'No'
  
  for i in range(0, len(text)-1, 2):
    if (text[i:i+2]!='hi'):
      return 'No'

  return 'Yes'
 
print(checkHitachi(text))

Solution (Python):
print('YNeos'[input().replace('hi','')!=''::2])

Solution (Python):
print('Yes' if ''.join(input().split('hi'))=='' else 'No')

Solution (Python):
S = str(input())
if len(S) % 2 != 0:
  ans = 'No'
else:
  h = int(len(S) / 2)
  s = [[S[2 * i - 2], S[2 * i -1]] for i in range(h)]
  hi = s.count(['h', 'i'])
  if h == hi:
    ans = 'Yes'
  else:
    ans = 'No'
print(ans)

Solution (Python):
S = input()
if len(S) % 2 == 1:
    print('No')
    exit()
for i in range(len(S)//2):
    if S[2*i:2*i+2] != 'hi':
        print('No')
        exit()
print('Yes')

Solution (Python):
s = input()
a = 0
if(len(s)%2 == 1):
    print('No')
else:
    for i in range(len(s)//2):
        if(s[2*i] != 'h' or s[2*i+1] != 'i'):
            a = 1
            print('No')
            break
    if(a == 0):
        print('Yes')

Solution (Python):
S = str(input())

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

Solution (Python):
s = input().split('hi')
ans = 'Yes'
for i in s:
  if i != '':
    ans = 'No'
    break

print(ans)

Solution (Python):
S = input()
ans = "Yes"
if len(S)%2==1:ans = "No"
for i in range(len(S)//2):
    if S[i*2]+S[i*2+1]!="hi":
        ans = "No"
print(ans)

Solution (Python):
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()

Solution (Python):
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')

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

Solution (Python):
s=input()
n=len(s)
if n%2==1:
    print("No")
elif "hi"*(n//2)==s:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
if s=="hi" or s=="hihi" or s=="hihihi" or s=="hihihihi" or s=="hihihihihi":
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
    S = input()
    if len(S) % 2 == 1:
        print("No")
        return
    for i in range(0, len(S), 2):
        if S[i:i+2] != "hi":
            print("No")
            return
    print("Yes")


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

if 'hi' * (len(s) // 2) == s:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
count = 0
count_h = 0
count_i = 0
frag = 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
i = 0
while i < len(S):
  if S[i] != 'h':
    frag = 1
  i = i+2

if count == 1 and len(S)%2 == 0 and count_h == count_i and frag == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
s = s.replace('hi', '')
if s:
  print('No')
else:
  print('Yes')

Solution (Python):
S = input()

S_size = len(S)
S_hi = S.count('hi')

if S_size == S_hi*2:
    print('Yes')
else:
    print('No')

Solution (Python):
S=input()
if len(S)%2!=0:
  print("No")
  exit()
for i in range(int(len(S)/2)):
  if S[i*2]!="h":
    print("No")
    exit()
  if S[i*2+1]!="i":
    print("No")
    exit()
print("Yes")

Solution (Python):
S=str(input())
if len(S)%2 != 0:
  print("No")
  exit()
for i in range(int(len(S)/2)):
  if S[i*2]!="h":
    print("No")
    exit()
  if S[i*2+1]!="i":
    print("No")
    exit()
print("Yes")

Solution (Python):
s = str(input())

if len(s)%2:
    print('No')
    exit()
for i in range(len(s)):
    if not i%2 and s[i] == "h":
        continue
    elif i%2 and s[i] == "i":
        continue
    else:
        print("No")
        exit()
print('Yes')

Solution (Python):
import sys

input = sys.stdin.readline().strip('\n')
flag = 0
for idx in range(len(input)):
    if input[idx] != 'h' and input[idx] != 'i':
        print('No')
        flag = -1
        break
    elif input[idx] == 'h':
        if idx == len(input)-1:
            print('No')
            flag = -1
            break
        elif input[idx+1] != 'i':
            print('No')
            flag = -1
            break
    else:
        if idx == 0:
            print('No')
            flag = -1
            break
        elif input[idx-1] != 'h':
            print('No')
            flag = -1
            break

if flag == 0:
    print('Yes')

Solution (Python):
import re

S = input()

hslist = ["hi","hihi","hihihi","hihihihi","hihihihihi"]

if S in hslist:
  print("Yes")
else:
  print("No")

Solution (Python):
hitachi = "hi"

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

print('No')

Solution (Python):
def solve(s):
    return "Yes" if "hi" * (len(s) // 2) == s else "No"

assert solve("hihi") == "Yes"
assert solve("hi") == "Yes"
assert solve("ha") == "No"
assert solve("hii") == "No"

s = input()
print(solve(s))

Solution (Python):
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')

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

Solution (Python):
S = input()

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

print("Yes")

Solution (Python):
s = input()
if s == 'hi' * int(len(s)//2):
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
l=len(s)
if l%2==1:
  print('No')
else:
  for i in range(l//2):
    tmp=s[2*i]+s[2*i+1]
    if tmp!='hi':
      print('No')
      break
  else:
    print('Yes')

Solution (Python):

import sys
input = sys.stdin.readline

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

Solution (Python):
s=input()
for i in range(len(s)//2):
    if s[-2:]=="hi":
        s=s[:-2]
if s=="":
    print("Yes")
else:
    print("No")

Solution (Python):
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")

Solution (Python):
s = list(input())
lens = len(s)
if lens %2 == 1:
    ans = "No"
else:
    ans = "Yes"
    for i in range(lens//2):
        if s[i*2] == "h" and s[i*2+1] == "i":
            continue
        else:
            ans = "No"
            break
print(ans)

Solution (Python):
S=input()

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

Solution (Python):
S = input()

while True:
    if S == "hi":
        flag = True
        break
    elif len(S) < 2:
        flag = False
        break
    elif S[-2:] == "hi":
        S = S[:-2]
    else:
        flag = False
        break

if flag:
    print("Yes")
else:
    print("No")

Solution (Python):
S = raw_input()

length = len(S)
if length % 2 == 0:
  if S.count('hi')==length/2:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Solution (Python):
s=input()
hi=["hi","hihi","hihihi","hihihihi","hihihihihi"]

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

Solution (Python):
s=input()
hitati="hi"*(len(s)//2)
if hitati==s:
  print("Yes")
else:
  print('No')

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

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

Solution (Python):
s = input()

num = len(s)
if num % 2 != 0:
    print('No')
else:
    hitachi = 'hi' * int(num / 2)
    if hitachi == s:
        print('Yes')
    else:
        print('No')

Solution (Python):
import sys
import math
import itertools
from collections import deque

s=input()
n=len(s)
if(n%2==1):
    print("No")
    sys.exit()
for i in range(0,n,2):
    if(s[i]!='h' or s[i+1]!='i'):
        print("No")
        sys.exit()
print("Yes")

Solution (Python):
s=input()
if len(s)%2==1:
	s+="a"
check=0
for i in range(round(len(s)/2)):
	if s[2*i:2*i+2]!="hi":
		check+=1
if check==0:
	print("Yes")
else:
	print("No")

Solution (Python):

string_in = input()
n_str = len(string_in)
string_in = string_in.replace("hi", '%d'%(1))
if n_str == string_in.count('%d'%(1))*2:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

X = ["hi" * i for i in range(1, 5+1)]
if S in X:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

for i in range(1, 6):
	if 'hi' * i == s:
		print('Yes')
		break
	elif i == 5:
		print('No')

Solution (Python):


s = input()
check = True
for i in range(len(s)):
    char = ''
    if i % 2 == 0:
        char = 'h'
    else:
        char = 'i'
    if s[i] != char:
        check = False
        break
    
print('Yes' if check and len(s) % 2 == 0 else 'No')

Solution (Python):
t=""
S="".join(list(input()))
for i in range(len(S)//2):
  t=t+"hi"
  
print("Yes" if S==t else "No")

Solution (Python):
S = list(input())
flug = True
for i in range(0,len(S),2):
    if i+1 < len(S):
        st = S[i] + S[i + 1]

        if st != "hi":
            flug = False
    else:
        flug = False

if flug == True:
    print("Yes")
else:
    print("No")

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

Solution (Python):
s = input()

hitachi = 'hi'

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

print('No')

Solution (Python):
def main():
  a = input()
  a = list(a)
  t = True
  while len(a) != 0:
    b = a.pop(0)
    c = ""
    if len(a) > 0:
      c = a.pop(0)
    if b != "h" or c != "i":
      t = False
      break
    
  if t:
    print("Yes")
  else:
    print("No")


if __name__ == "__main__":
  main()

Solution (Python):




S = input()
jdg = False
for i in range(1,6):
    if S == "hi"*i:
        jdg = True
if jdg:
    print("Yes")
else:
    print("No")

Solution (Python):
a = input()
if a == "hi" :
  print('Yes')
elif a == 'hihi':
  print('Yes')
elif a == 'hihi':
  print('Yes')
elif a == 'hihihi':
  print('Yes')
elif a == 'hihihihi':
  print('Yes')
elif a == 'hihihihihi':
  print('Yes')
else:
  print('No')

Solution (Python):
print('No' if input().replace('hi','') != '' else 'Yes')

Solution (Python):
print('Yes' if input().replace('hi','') == '' else 'No')

Solution (Python):



















S = input()
jdg = False
for i in range(1,6):
    if S == "hi"*i:
        jdg = True
if jdg:
    print("Yes")
else:
    print("No")

Solution (Python):
print('No' if input().replace('hi','') else 'Yes')

Solution (Python):
S = input()
S = S.replace('hi', '')

if S == '':
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s == "hihihihihi":
	print ("Yes")
else:
	print ("No")

Solution (Python):
s = str(input())

result = "No"

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

Solution (Python):
str = input()
split_list = [str[i: i+2] for i in range(0, len(str), 2)]

check = [i for i in split_list if i != "hi"]
if not check:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
hitachi = ["hi" * i for i in range(1, 6)]
if s in hitachi:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()

if s.count("hi") == len(s) / 2:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
s = s.replace("hi", "")
if s == "":
  print("Yes")
else:
  print("No")

Solution (Python):
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')

Solution (Python):
if __name__ == '__main__':
    S=input()
    i=0
    j=len(S)
    if j%2==0:
        for l in range(0,len(S),2):
            i=0
            if(S[l]=='h' and S[l+1]=='i'):
                i=1
    if i==1:
        print('Yes')
    else:
        print('No')

Solution (Python):
s = input()
print('Yes' if s.count('h')==s.count('i') and s == 'hi'*s.count('h') else 'No')

Solution (Python):
if input().replace('hi',''):
  print('No')
else:
  print('Yes')

Solution (Python):
s = input()
replaced_str = s.replace('hi','')
if len(replaced_str) > 0:
  print('No')
else:
  print('Yes')

Solution (Python):
S = input()
tmp = ""
for i in range(5):
    tmp += "hi"
    if tmp == S:
        print("Yes")
        exit()
print("No")

Solution (Python):
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")

Solution (Python):
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")

Solution (Python):
s = input()
if len(s.replace('hi','')) == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input().replace('hi', '')
if len(s) > 0:
    print('No')
else:
    print('Yes')

Solution (Python):
print('Yes'*(input()in['hi'*i for i in range(1,6)])or'No')

Solution (Python):
s=input()
t='hi'*(len(s)//2)
print('NYoe s'[s==t::2])

Solution (Python):
S = input()
ok = True
for i in range(0, len(S), 2):
    try:
        if not (S[i] == "h" and S[i + 1] == "i"):
            ok = False
            break
    except IndexError:
        ok = False
        break
print("Yes" if ok else "No")

Solution (Python):
n=input()
if(n.count('hi')*2==len(n)):
  print("Yes")
else:
  print("No")

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

Solution (Python):
s=input()
t=s.replace("hi","")





print('Yes'if  len(t)==0 else 'No')

Solution (Python):
S = input()
T = ""
for i in range(10):
    T = T + "hi"
    if S==T:
        print("Yes")
        exit()
print("No")

Solution (Python):
S = input()
S2 = ['hi', 'hihi', 'hihihi', 'hihihihi', 'hihihihihi']

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

Solution (Python):
s = input()
ans = s.split('hi')
if ''.join(ans) == '':
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
isHitachi = False
for i in range(1, 6):
    if s == 'hi'*i:
        isHitachi = True
        break
if isHitachi:
    print('Yes')
else:
    print('No')

Solution (Python):
print("Yes" if (''.join(input().split('hi')) == '') else "No")

Solution (Python):
import sys








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

if __name__ == "__main__":
	main()

Solution (Python):
S = input().replace('hi', '*')

for s in S:
    if s != '*':
        print('No')
        exit()

print('Yes')

Solution (Python):
s = input()

p = 0
while len(s)>0:
    if s.startswith('hi'):
        s = s[2:]
        if len(s)==0:
            print('Yes')
            p = 1
            break
    else:
        break
if p==0:
    print('No')

Solution (Python):
s=input()
x=""
for i in range(6):
    if x==s:
        print("Yes")
        exit()
    x+="hi"
print("No")

Solution (Python):
S = input()
ans = ''
flag = False
for i in range(5):
    ans += 'hi'
    if ans == S:
        flag = True

print('Yes' if flag else 'No')

Solution (Python):
import sys
c = input()
for i in range(6):
    if c == "hi"*i:
        print("Yes")
        sys.exit()
print("No")

Solution (Python):



s = input()

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

Solution (Python):
S=input()
N=len(S)
n1=0
n2=0
for i in range(N):
 if (i%2==0)and(S[i]=="h"):
  n1=n1+1
 if (i%2==1)and(S[i]=="i"):
  n2=n2+1

if (n1==n2)and(n1+n2==N):
 print("Yes")
else:
 print("No")

Solution (Python):
S = input()
hi = 'hi'

for i in range(5):
    if S == hi * (i + 1):
        print('Yes')
        break
else:
    print('No')

Solution (Python):
import re
print("Yes") if re.fullmatch(r'(hi)+',input()) else print("No")

Solution (Python):
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()

Solution (Python):
S = input()
res = 'No'
if len(S) % 2 == 0 and len(S) > 0:
    res = 'Yes'
    for i in range(int(len(S)/2)):
        
        if S[i*2:i*2+2] != 'hi':
            res = 'No'
            break
print(res)

Solution (Python):
s = str(input())

l = len(s)

ans = 'No'

if l % 2 == 0 and 'hi'*(l//2) == s:
    ans = 'Yes'

print(ans)

Solution (Python):
S = input()
res = 'No'
if len(S) % 2 == 0 and len(S) > 0:
    res = 'Yes'
    for i in range(int(len(S)/2)):
        
        if S[i*2:i*2+2] != 'hi':
            res = 'No'
            break
print(res)