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()
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")
      exit()
  print("Yes")
else:
  print("No")

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

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

out = 0

if len(s) % 2 != 0:
    print("No")
else:
    for i in range(0, len(s), 2):
        if s[i] == 'h' and s[i+1] == 'i':
            continue
        else:
            out = 1

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

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

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

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

Solution (Python):
from sys import stdin
input = lambda: stdin.readline().rstrip()
s = input()
if len(s) % 2 == 1:
    print("No")
    exit()
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)

Solution (Python):
S=input()

Slist=list(S)

flag=True

for i, c in enumerate(S):
  if i%2==0 and c!='h':
    flag=False
    break
  if i%2==1 and c!='i':
    flag=False
    break
if flag and len(S)%2==0:
  print('Yes')
else:
  print('No')

Solution (Python):
print('YNeos'[1-(input()in['hi'*i for i in range(11)])::2])

Solution (Python):
s = input()

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

  print(ans)

Solution (Python):
s = "hi"
S = input()
flag = False
for i in range(5):
  if S==s:
    flag=True
    break
  s = s+"hi"
if flag:
  print("Yes")
else:
  print("No")

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

Solution (Python):

import sys
def input():
    return sys.stdin.readline()[:-1]

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

if __name__ == '__main__':
    main()

Solution (Python):
s=input()
n=len(s)
if n%2==1:
    print("No")
    exit()
for i in range(n-1):
    if s[i]=="h":
        if s[i+1]!="i":
            print("No")
            exit()
    elif s[i]=="i":
        if s[i+1]!="h":
            print("No")
            exit()
    else:
        print("No")
        exit()
print("Yes")

Solution (Python):

s = list(input())
if len(s) % 2 != 0:
    print("No")
    exit()

while s:
    if s[0]=="h" and s[1] == "i":
        s.pop(0)
        s.pop(0)
    else:
        print("No")
        exit()

print("Yes")

Solution (Python):
S = input()

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

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):
s = input()
L = s.split("hi")
ans = 1
for x in L:
    if x != "":
        ans = 0
print(["No","Yes"][ans])

Solution (Python):
s = input()

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

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

Solution (Python):
s = input()

n = s.count("hi")
print("Yes" if n*2 == len(s) else "No")

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

Solution (Python):
'''
Created on 2020/08/20

@author: harurun
'''
def main():
  import re
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write

  S=pin()[:-1]
  if re.fullmatch(r"(hi)+",S)==None:
    print("No")
    return 
  print("Yes")
  return 

main()

Solution (Python):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rf = lambda: map(float, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Solution (Python):
def main():
    s = input()
    if s.count('hi') == len(s) // 2 and len(s) % 2 == 0:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Solution (Python):
s = input()

result = 'No'

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

print(result)

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

Solution (Python):
s=input()
c=["hi"*int(i) for i in range(1,6)]
if s in c:
    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()
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")

Solution (Python):
S=input()
n=len(S)
print("Yes" if S=="hi"*(n//2) else "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):
n = input()
if n == "hi" or n == "hihi" or n == "hihihi" or n == "hihihihi" or n == "hihihihihi":
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

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

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

Solution (Python):
S = input()

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

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

print("Yes")

Solution (Python):
import sys, math
from functools import lru_cache
from collections import deque
sys.setrecursionlimit(500000)
MOD = 10**9+7

def input():
    return sys.stdin.readline()[:-1]

def mi():
    return map(int, input().split())

def ii():
    return int(input())

def i2(n):
    tmp = [list(mi()) for i in range(n)]
    return [list(i) for i in zip(*tmp)]


def main():
    S = input()
    for i in range(1, 6):
        if S == 'hi'*i:
            print('Yes')
            return
    print('No')


if __name__ == '__main__':
    main()

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()

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

Solution (Python):
s = input()
n = len(s)
if n % 2 == 1:
    print("No")
    exit(0)
for i in range(n):
    if i % 2 == 0:
        if s[i] != "h":
            print("No")
            break
    elif s[i] != "i":
        print("No")
        break
else:
    print("Yes")

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

Solution (Python):
import math
import sys
import bisect
readline = sys.stdin.readline


def main():
    s = readline().rstrip()
    print('Yes' if s == 'hi' or s == 'hihi' or s == 'hihihi'or s ==
          'hihihihi' or s == 'hihihihihi' else 'No')


if __name__ == '__main__':
    main()

Solution (Python):
s = input()

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

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

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

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

Solution (Python):
s = input()
p = "No"
a = 0
if len(s) % 2 == 0:
  for i in range(len(s)//2):
    if str(s[a]+s[a+1]) == "hi":
      p = "Yes"
      a = a + 2
    else:
      p = "No"
      break;
print(p)

Solution (Python):
t = ""
D = set([])
for _ in range(5):
    t += "hi"
    D.add(t)
print("Yes" if input() in D else "No")

Solution (Python):
S=input()
N=len(S)
if N%2!=0:
    print("No")
    exit()

for i in range(N//2):
    if S[i*2:(i*2)+2]!="hi":
        print("No")
        exit()
print("Yes")

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

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
from operator import mul
from functools import reduce
import pprint
sys.setrecursionlimit(10 ** 9)


INF = 10 ** 20
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007


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

Solution (Python):
S = input()
flg = True
while flg and len(S) >= 1:
    flg = (S[:2] == 'hi')
    S = S[2:]
print('Yes' if flg else 'No')

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

Solution (Python):
s=input()
if len(s)%2!=0:
  print("No")
  exit()
for i,c in enumerate(s):
  if (i%2==0 and c=="h") or (i%2==1 and c=="i"):
    continue
  else:
    print("No")
    exit()
print("Yes")

Solution (Python):
S=input()
ans='Yes'
i=0
while i<len(S):
    if S[i:i+2]!='hi':
        ans='No'
    i+=2
print(ans)

Solution (Python):
s = input()
if len(s) % 2 != 0:
  print('No')
  exit()
for t in s[::2]:
  if t != 'h':
    print('No')
    exit()
for t in s[1::2]:
  if t != 'i':
    print('No')
    exit()
print('Yes')

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

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

Solution (Python):
str = input()

s_ans = 'Yes'
if len(str)%2 == 1:
    s_ans ='No'
else:
    for i in range(0,len(str),2):
        moji = str[i:i+2]
        if str[i:i+2] != 'hi':
            s_ans = 'No'
            break
print(s_ans)

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

Solution (Python):
str = input()

if len(str)%2 == 1:
    print('No')
else:
    for i in range(0,len(str),2):
        moji = str[i:i+2]
        
        if moji != 'hi':
            ans = 1
            break
        else:
            ans = 0
    if ans==1:
        print('No')
    else:
        print('Yes')

Solution (Python):
s = input()
k = len(s)
ans = ''
if k % 2 == 1:
  ans = 'No'
else:
  if s == 'hi' * (k // 2):
    ans = 'Yes'
  else:
    ans = 'No'
print(ans)

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby, combinations_with_replacement
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Solution (Python):











s = input()
print("Yes" if all( i == '' for i in s.split("hi")) else "No")

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

Solution (Python):
s = input()

ans = 'Yes'
num = len(s)

if num % 2 != 0:
  ans = 'No'
  pass
else:
  for i in range(0, num, 2):
    if s[i] + s[i+1] != 'hi':
      ans = 'No' 

print(ans)

Solution (Python):
s = input().split("hi")

f = 0

for i in s:
    if i != "":
        f = 1
        break
    
if f == 0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
str = input()

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

Solution (Python):
s = input();    l = len(s)
if l%2==0:
    a = 'hi'*(l//2)
    if a== s:    print('Yes')
    else:    print('No')
else:    print('No')

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

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

Solution (Python):
s=list(str(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!=0 and s[i]!="i"):
      print("No")
      break
  else:
    print("Yes")

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

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

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

Solution (Python):
import re
s = input()
bl = re.fullmatch(r"^(hi)+$", s) is not None
print("Yes" if bl else "No")

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

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

Solution (Python):
import sys
def main():
    s = input()
    if len(s) % 2 == 1:
        print('No')
        sys.exit()
    s1 = s[::2]
    s2 = s[1::2]
    s1t = [c == 'h' for c in s1]
    s2t = [c == 'i' for c in s2]
    if all(s1t) and all(s2t):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Solution (Python):

import sys
S = input()
if len(S) % 2 == 0:
    hi_list = []
    for i in range(0, len(S), 2):
        hi_list.append(S[i:i+2])
    if set(hi_list) == {'hi'}:
        print('Yes')
        sys.exit(0)
print('No')

Solution (Python):
print("YNeos"["".join(input().split("hi"))!=""::2])

Solution (Python):
S = input()
l = len(S)
if l % 2 == 0 and S == l // 2 * "hi":
    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()

for i in range(1, 6):
    if S == 'hi' * i:
        print('Yes')
        exit()
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()
if len(s)%2==0:
  for i in range(len(s)//2):
    if s[2*i:2*i+2]=="hi":
      continue
    print("No")
    break
  else:
    print("Yes")
else:
  print("No")

Solution (Python):
S = input()
while len(S) != 0:
  if S[:2] == "hi":
    S = S[2:]
  else:
    break
print("Yes" if len(S) == 0 else "No")

Solution (Python):
S = input()

lenS = len(S)
if lenS%2 == 1:
    print('No')
else:
    if all([S[i:i+2] == 'hi' for i in range(0, lenS, 2)]):
        print('Yes')
    else:
        print('No')

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

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()

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

Solution (Python):
S = input()
outputString = "No"
if len(S) % 2 !=0:
 outputString="No"
else:
  outputString = "Yes"
  for k,v in enumerate(S):
    if (k % 2 == 0 and v!="h") or (k % 2 == 1 and v!="i"):
       outputString = "No"
       break

print(outputString)

Solution (Python):
s = input()

n = len(s)

if n %2 != 0:
    print('No')
elif s == 'hi'*(n//2):
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()

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

Solution (Python):
s = input()
if len(s)%2 == 0 and s == 'hi' * (len(s)//2):
    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 and S == "hi" * (len(S) // 2 ):
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import sys

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

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

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

print("Yes")

Solution (Python):
S = input()


ans = "Yes"
if len(S) % 2 == 1:
    ans = "No"

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

print(ans)

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()
hitachi = ""

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

print("No")

Solution (Python):
s = input()
ans = "No"

if s=="hi" :
    ans="Yes"
if s=="hihi":
    ans="Yes"
if s=="hihihi":
    ans="Yes"
if s=="hihihihi":
    ans="Yes"
if s=="hihihihihi":
    ans="Yes"

print(ans)

Solution (Python):
s = input()
if len(s)%2 == 1 or len(s) == 0:
    print("No")
    exit()
while(len(s)):
    
    if s[:2] == "hi":
        if len(s) == 2:
            print("Yes")
            exit()
        s = s[2:]
    else:
        print("No")
        exit()
print("No")

Solution (Python):
S = input()

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

Solution (Python):
s = input()
l = len(s) // 2
if s == 'hi' * l:
    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().replace('hi', '')
if not len(s):
  print('Yes')
else:
  print('No')

Solution (Python):
import sys
S = input()
if len(S) % 2 != 0:
    print("No")
    sys.exit()

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

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

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

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

Solution (Python):
import re
S = input()
print('Yes' if len(re.sub(r'hi', '', S)) == 0 else 'No')

Solution (Python):
import sys
input = sys.stdin.readline
"""
N,X=map(int,input().split())
vA=list(map(int,input().split()))
vA.sort()
"""

S=input().rstrip()
T="hi"

res=any(S==T*i for i in range(1,6))
print("No Yes".split()[res])

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

Solution (Python):
s = input()
if len(s)%2 == 1:
  print("No")
  exit()
  
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")

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

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

Solution (Python):
S=input()
if len(S)==1:
    print('No')
else:
    number=0
    for a in range(len(S) - 1):
        if S[a]=='h' and S[a+1]=='i':
            number+=1
    if number==len(S)/2:
        print('Yes')
    else:
        print('No')

Solution (Python):

ng = True
s = input()
for i in range(1, 6):
    if s=="hi"*i: ng = False
print("YNeos"[ng::2])

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

Solution (Python):
import sys
S = list(input())
if (len(S) % 2 == 1):
    print("No")
    sys.exit()
pre = S.pop(0)
for s in S:
    if(pre == "h"):
        if(s != "i"):
            print("No")
            sys.exit()
    elif(pre != "i"):
        print("No")
        sys.exit()
    pre = s
print("Yes")

Solution (Python):
S = input()

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

Solution (Python):
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()
    if i == len(s) - 1:
        if i % 2 == 1:
            print("Yes")
        else:
            print("No")

Solution (Python):
s = input()

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

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

Solution (Python):
import re
s = input()
if re.sub(r'hi', '', s) == '':
    print('Yes')
else:
    print('No')

Solution (Python):
S = input().strip()

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

print("No")

Solution (Python):
S = input()
if len(S)%2:
    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):
from statistics import median


from fractions import gcd
from itertools import combinations 
from collections import deque
from collections import defaultdict
import bisect










import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7

def readInts():
  return list(map(int,input().split()))
S = input()
for i in range(0,len(S),2):
    if S[i:i+2] == 'hi':
        pass
    else:
        print('No')
        exit()
print('Yes')

Solution (Python):
s = input()

if len(s) % 2 == 1:
    print("No")
    exit()
while s:
    if s[:2] == "hi":
        s = s[2:]
    else:
        print("No")
        exit()
print("Yes")

Solution (Python):
def solve():
    s = input()
    for i in range(1,6):
        if s == "hi"*i:
            print("Yes")
            exit()
    print("No")
    return 0

if __name__ == "__main__":
    solve()

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

Solution (Python):
s = input()
if (len(s)%2==1):
    print("No")
    exit()
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")

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)
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')

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

Solution (Python):
s = input()
n = len(s)
if n % 2 != 0:
    print("No")
    quit()

for i in range(n//2):
    if s[2*i:(2*i+2)] != "hi":
        print("No")
        quit()
print("Yes")

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

Solution (Python):
s=input()
 
ans="No"
if len(s)%2==0:
  if s=="hi"*(len(s)//2):
    ans="Yes"

print(ans)

Solution (Python):
S = input()

A = ["hi"*i for i in range(1,6)]

if S in A:
    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()

ans='Yes'

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

print(ans)

Solution (Python):
S = input()
if S == "hi"*(len(S)//2):
  print("Yes")
else:
  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):
S = input()
k = len(S)
if k%2==1:
    print("No")
    exit()

frag = True
for i in range(0,k,2):
    if S[i]+S[i+1]!="hi":
        frag = False

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

Solution (Python):
s = input()
while s[:2] == 'hi':
    s = s[2:]
if s == '': print('Yes')
else: print('No')

Solution (Python):
s = input()

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

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

Solution (Python):
S = input()
l = len(S)


judge=True
if l%2==0:
    for i in range(l//2):
        if not S[2*i:2*(i+1)]=="hi":
            judge=False
    if judge:
        print("Yes")
    else:
        print("No")
else:
    print("No")

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

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

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

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

Solution (Python):

import re


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


if __name__ == "__main__":
    main()

Solution (Python):
s = input()
print("Yes" if s.replace("hi","")=="" else "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:
	if s == "hi"*(len(s)//2):
		print("Yes")
	else:
		print("No")
else:
	print("No")

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 = str(input())
ans = 'Yes'

from collections import Counter
SC = Counter(list(S))
h,i = 0,0
for a,b in SC.items():
  if a == 'h':
    h = b
  elif a == 'i':
    i = b
  else:
    ans = 'No'
    break

if h == i:
  for i in range(0,len(S)-1,2):
    if S[i]+S[i+1] != 'hi':
      ans = 'No'
      break
else:
  ans = 'No'
  
print(ans)

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


resolve()

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

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

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

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

Solution (Python):
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 len(s)%2 == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
HiList = []
hi = ""
ans = "No"
for _ in range(5):
    hi += "hi"
    if S == hi:
        ans = "Yes"
print(ans)

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()
s = s.replace('hi', "")
if len(s) > 0:
    print('No')
else:
    print('Yes')

Solution (Python):
print('YNeos'[input() not in ['hi'*i for i in range(6)]::2])