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):
import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): 
    return list(map(int,input().split()))
def m(): 
    return map(int,input().split())
def onem(): 
    return int(input())
def s(x): 
    a = []
    aa = x[0]
    su = 1
    for i in range(len(x)-1):
        if aa != x[i+1]:
            a.append([aa,su])
            aa = x[i+1]
            su = 1
        else:
            su += 1
    a.append([aa,su])
    return a
def jo(x): 
    return " ".join(map(str,x))
def max2(x): 
    return max(map(max,x))
def In(x,a): 
    k = bs.bisect_left(a,x)
    if k != len(a) and a[k] ==  x:
        return True
    else:
        return False
"""
def nibu(x,n,r):
    ll = 0
    rr = r
    while True:
        mid = (ll+rr)//2

    if rr == mid:
        return ll
    if (ここに評価入れる):
        rr = mid
    else:
        ll = mid+1
"""
s = input().split()[0]

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

Solution (Python):
import re

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

main()

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()
for i in range(1, 10):
    if S == 'hi'*i:
        print('Yes')
        break
else:
    print('No')

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


if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()
tmps = s
flag = 1
while len(tmps)>1:
    if tmps[0:2] == 'hi':
        tmps = tmps[2:]
    else:
        flag = 0
        tmps = tmps[2:]
if len(tmps)==1 or flag==0:
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()
flag = True
for i, c in enumerate(S):
    if i % 2 == 0:
        if c != 'h':
            flag = False
            break
    else:
        if c != 'i':
            flag = False
            break

if len(S) % 2 == 1 or not flag:
    print("No")
else:
    print("Yes")

Solution (Python):
import sys

s = raw_input()
while s:
    if s[:2] != "hi":
        print "No"
        sys.exit(0)
    s = s[2:]

print "Yes"

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

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

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

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

Solution (Python):
s = input()
if len(s) % 2:
  print("No")
  exit()
for k,i in enumerate(s):
  if k % 2:
    if i != "i":
      print("No")
      exit()
  else:
    if i != "h":
      print("No")
      exit()
print("Yes")

Solution (Python):
s=input()
lens=len(s)//2

hi="hi"*lens
if hi ==s:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()

if len(s)%2==0  and s.count('hi')==len(s)//2:
    print('Yes')

else:
    print('No')

Solution (Python):
def main():
  s = str(input())
  while(len(s)>=1):
    if s[:2] == 'hi':
      s = s[2:]
    else:
      print('No')
      break
  else:
    print('Yes')
  
if __name__=='__main__':
  main()

Solution (Python):
def main():
    s = input()

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

if __name__ == '__main__':
    main()

Solution (Python):


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

	main(inputs)

Solution (Python):
s = list(input())
a = 'hi'
if len(s) % 2 != 0:
  print('No')
  exit()
for i in range(len(s)//2):
  if s[2*i] == 'h' and s[i*2+1] == 'i':
    pass 
  else:
    print('No')
    exit()

print('Yes')

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

Solution (Python):
a = input()

if  len(a) % 2 == 1:
    print("No")
    exit()
if len(a) / 2 == a.count('hi'):
    print("Yes")
else:
    print("No")

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

Solution (Python):
S = input()

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

if S in cand:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

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

Solution (Python):
s = input()
if(s in ["hi", "hihi", "hihihi", "hihihihi", "hihihihihi"]): 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 = raw_input()
n = len(s)
if n % 2 != 0:
    print 'No'
else:
    m = n / 2
    pattern = 'hi' * m
    print 'Yes' if pattern == s else 'No'

Solution (Python):
s = input()

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

Solution (Python):
S = input()

cnt = S.count("hi")

print("Yes" if len(S) == cnt * 2 else "No")

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

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

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

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

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

Solution (Python):
s=input()
n=len(s)
if n%2==0:
    for i in range(n//2):
        if s[i*2:i*2+2]!='hi':
            print('No')
            exit()
    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')
        exit()
print('Yes')

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

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

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

Solution (Python):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    s = input()
    l = len(s)

    if l % 2 == 0:
        for i in range(l//2):
            if s[i*2:i*2+2] != "hi":
                print('No')
                sys.exit()
    else:
        print('No')
        sys.exit()

    print('Yes')


if __name__ == '__main__':
    main()

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

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

if not(len(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())
if S in [ "hi"*x for x in range(1,6) ]:
    print("Yes")
else:
    print("No")

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

count = len(s) // 2
if 'hi' * count == s:
  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):
def solve(s):
    if len(s) % 2 == 1:
        return "No"
    for i, x in enumerate(s):
        if i % 2 == 0 and x != "h":
            return "No"
        if i % 2 == 1 and x != "i":
            return "No"
    return "Yes"


def main():
    s = input()
    res = solve(s)
    print(res)


def test():
    assert solve("hihi") == "Yes"
    assert solve("hi") == "Yes"
    assert solve("ha") == "No"


if __name__ == "__main__":
    test()
    main()

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    S = input()
    l = len(S)
    if l % 2 != 0:
        print('No')
    elif S.count('hi') == l // 2:
        print('Yes')
    else:
        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):
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')

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 s == "hi" or s == "hihi" or s=="hihihi"  or s=="hihihihi" or s=="hihihihihi":
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
from io import StringIO
import unittest

doTest=0

def yn(b):
    print("Yes" if b==1 else "No")
    return

def resolve():
    readline=sys.stdin.readline

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

    yn(readline().strip() in ans)

    return

if doTest==0:
    resolve()
    sys.exit()

Solution (Python):
import sys

S = input()

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

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

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

is_h = False
for i in range(1, 6):
    is_h = is_h or ("hi" * i == s)

print("Yes" if is_h else "No")

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

if __name__ == '__main__':
    main()

Solution (Python):
s=input()
l=0
for i in range(5):
    if s=="hi"*(i+1):
        l=1
print("Yes")if l else print("No")

Solution (Python):
s = input()

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

Solution (Python):
s = input().split("hi")
if len("".join(s))>0:
  print("No")
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):
a = input()
b = len(a)
ans = True
if b%2 == 1:
  ans = False
else:
  for i in range(b//2):
    if a[i*2:i*2+2] != "hi":
      ans = False
      break
print("Yes" if ans else "No")

Solution (Python):
import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from fractions import gcd
def input():
    return sys.stdin.readline()[:-1]
def ruiseki(lst):
    return [0]+list(accumulate(lst))
mod=pow(10,9)+7

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

for i in range(len(s)//2):
    if s[i*2]=="h" and s[i*2+1]=="i":
        continue
    else:
        print("No")
        quit()

print("Yes")

Solution (Python):

import sys


S = input()
if len(S)%2==1:
    print('No')
else:
    for i in range(len(S)//2):
        if S[2*i]=='h' and S[2*i+1]=='i':
            None
        else:
            print('No')
            sys.exit()
    print('Yes')
    sys.exit()

Solution (Python):

s = input()




n = len(s)
ju = True
for i in range(n):
    if i%2 ==0 and s[i] != 'h':
        ju = False
    if i%2==1 and s[i] !='i':
        ju  = False

if ju and n%2==0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import sys
s=str(input())
if len(s)%2==1:
  print('No')
else:
  for i in range(0,len(s)-1,2):
    if s[i:i+2]=='hi':
      pass
    else:
      print('No')
      sys.exit()
  print('Yes')

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

Solution (Python):

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

Solution (Python):
s = input()

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

print('No')

Solution (Python):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    s = input()
    for i in range(5):
        if s == "hi"*(i+1):
            print("Yes")
            return
    print("No")

if __name__ == "__main__":
    resolve()

Solution (Python):
S = input()

ans = "No"
s = ""
for _ in range(len(S) // 2):
    s += "hi"
    if s == S:
        ans = "Yes"
        break
print(ans)

Solution (Python):
S = input()

c = 0
while c < 5:
    c+=1
    if S == 'hi'*c:
        print('Yes')
        exit()
print('No')

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

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

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

if s == hi or s == hi * 2 or s == hi * 3 or s == hi * 4 or s == hi * 5:
  print('Yes')
  
else:
  print('No')

Solution (Python):
s = input()

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

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

Solution (Python):

import sys
import math
import numpy as np
import itertools

m = input()

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

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

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

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



s=input()


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

Solution (Python):
import sys
s=input()
for i in range(1,6):
    if 'hi'*i==s:
        print('Yes')
        sys.exit()
print('No')

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

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

Solution (Python):
s = input().strip()
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 len(S) == 2*S.count("hi") else "No")

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

Solution (Python):
import re

if __name__ == '__main__':

    s = input().strip()
    if re.match("^(hi)+$", s):
        print("Yes")
    else:
        print("No")

Solution (Python):

S = input().strip()

hitachi = 'hi' * (len(S) // 2)

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

Solution (Python):

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

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

Solution (Python):
import math

def makelist(n, m):
    return [[0 for _ in range(m)] for _ in range(n)]






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

Solution (Python):






import math
from functools import lru_cache





MOD = 10**9 +7
INF = float('inf')





kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr





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):
import sys
input = sys.stdin.readline
t = input()[: -1] + "hi"
S = t.split("hi")
for t in S:
  if len(t):
    print("No")
    exit(0)
print("Yes")

Solution (Python):
S = input()
N = len(S)
ok = True
if N%2 == 0:
    for i in range(N//2):
        if S[2*i:2*i+2] != "hi":
            ok = False
else:
    ok = False
print("Yes" if ok else "No")

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

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

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

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

Solution (Python):
s = input()
count = s.count('hi')
if count == len(s)/2:
    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):
A = ["hi","hihi","hihihi","hihihihi","hihihihihi"]
S = input().strip()
if S in A:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
from math import ceil, floor
from collections import deque, Counter, defaultdict
from fractions import gcd
input = lambda: sys.stdin.readline().rstrip()

def eprint(s):
    sys.stderr.write('DEBUG: {}'.format(s))
    return

def main():
    s = input()
    n = len(s)

    for i in range(0,n,2):
        if s[i:i+2] == 'hi':
            continue
        else:
            print('No')
            return
    print('Yes')
    return

if __name__ == '__main__':
    main()

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

def check(S):
	if len(S) % 2 == 0:
		for i in range(0, len(S), 2):
			if S[i] != "h" or S[i + 1] != "i":
				return False
		return True
	else:
		return False

print("Yes" if check(S) else "No")

Solution (Python):
s = input()

ans = False

for i in range(1, 6):
    if s == ('hi' * i):
        ans = True
        break

print('Yes' if ans 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):
import sys

sys.setrecursionlimit(10 ** 8)

input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

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().strip()
t=s.replace('hi','')
print('Yes' if t=='' else 'No')

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

Solution (Python):
s = input()

compare = 'hi'

for _ in range(10):
    if s == compare:
        print('Yes')
        exit()
    compare += 'hi'

print('No')

Solution (Python):
s=input()
n=len(s)
if s=="hi"*(n//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()

print("Yes" if "".join(["hi"] * (len(s) // 2)) == s else "No")

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

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

Solution (Python):
class alphabet():
    def __init__(self, capitalize):
        self.num = dict()
        self.index = dict()
        self.abc = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n"\
            ,"o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
        if capitalize: 
            for i in range(26): self.abc[i] = self.abc[i].upper()
        for i, a in enumerate(self.abc):
            self.num[a] = i
            self.index[i] = a

def solve():
    N = input()
    i = 0
    if len(N) % 2 == 1: print("No")
    else:
        S = "hi" * (len(N) // 2)
        if S == N: print("Yes")
        else: print("No")


    
    return 0

if __name__ == "__main__":
    solve()

Solution (Python):
s=input()
slen=len(s)
ans=""
for i in range(slen//2):
    ans+="hi"
if s==ans:
    print("Yes")
else:
    print("No")

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

def examB():
    ans = 0
    print(ans)
    return

def examC():
    ans = 0
    print(ans)
    return

def examD():
    ans = 0
    print(ans)
    return

def examE():
    ans = 0
    print(ans)
    return

def examF():
    ans = 0
    print(ans)
    return

import sys,bisect,itertools,heapq,math,random
from copy import deepcopy
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
global mod,mod2,inf,alphabet,_ep
mod = 10**9 + 7
mod2 = 998244353
inf = 10**18
_ep = 10**(-12)
alphabet = [chr(ord('a') + i) for i in range(26)]

sys.setrecursionlimit(10**6)

if __name__ == '__main__':
    examA()

"""

"""

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

Solution (Python):
import sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : list(map(int, stdin.readline().split()))
sys.setrecursionlimit(10 ** 7)

def main():
    s = ns()

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

if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()
A = ["hi"*i for i in range(1,6)]
ans = 0
for a in A:
    if a == s:
        ans += 1
if ans > 0:
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
    s = input().rstrip()
    if len(s) % 2 != 0:
        print("No")
    else:
        f = True
        for i in range(0, len(s), 2):
            if s[i] != "h" or s[i+1] != "i":
                f = False
        if f:
            print("Yes")
        else:
            print("No")

if __name__ == "__main__":
    main()

Solution (Python):

''':'
docker run --rm -it -v $(cd $(dirname $0) && pwd):/vo:ro pypy:3-2.4.0 \
   /bin/bash -c "pypy3 /vo/$(basename $0) < /vo/input.txt"
exit $?
'''
import sys


def _s(): return sys.stdin.readline().strip()


def main():
    s = _s()
    hi = ["hi"*i for i in range(1, 6)]
    if s in hi:
        return "Yes"
    else:
        return "No"


if __name__ == "__main__":
    print(main())

Solution (Python):
sl = input()


while sl:
    if sl[:2] != "hi":
        print("No")
        exit()
    else:
        sl = sl[2:]
print("Yes")

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

Solution (Python):
import sys
n = input()
k = len(n)
if len(n)%2 == 0:
  for i in range(k//2):
    if n[2*i:2*i+2] != "hi":
      break
    if i == k//2-1:
      print("Yes")
      sys.exit()
print("No")

Solution (Python):
s = input()
a = ""
judge = False
for i in range(6):
    a = a + "hi"
    if a == s:
        print("Yes")
        judge = True
        break
if judge == False:
    print("No")

Solution (Python):
s=input()
for i in range(6):
    if s=="hi"*i:
        print("Yes")
        break
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):
ans=[]
s="hi"
for i in range(5):
    ans.append(s)
    s+="hi"
S=input()
if S in ans:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def solve():
    S = input()
    x = "hi"
    for i in range(10):
        if S == x * i:
            print("Yes")
            return
    print("No")


solve()

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

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

Solution (Python):
s = input()

bl = False
for i in range(1, 6):
    hi = "hi" * i
    if s == hi:
        bl = True

print("Yes" if bl else "No")

Solution (Python):



import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

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

main()

Solution (Python):
S = input()

if len(S) % 2 > 0:
    print('No')
else:
    if S[0::2].count('h') == len(S) // 2 and S[1::2].count('i') == len(S) // 2:
        print('Yes')
    else:
        print('No')

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

Solution (Python):
import sys

s = sys.stdin.readline().rstrip()

def main():
    l = len(s)
    if l & 1:
        return 'No'
    if s == 'hi' * (l // 2):
        return 'Yes'
    else:
        return 'No'

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
S = input()

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

Solution (Python):
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":
      print("No")
      break
  else:
    if S[i] != "i":
      print("No")
      break
else:
  print("Yes")

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()
hi = "hi"
for i in range(len(S)):
    if S[i] != hi[i%2]:
        print("No")
        exit()
if len(S) %2 != 0:
    print("No")
else:
    print("Yes")

Solution (Python):
from sys import stdin
S = (stdin.readline().rstrip())
S=S.replace("hi","")
if S == "":
    print("Yes")
else:
    print("No")

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

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