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



Sample input:
hihi


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
s=input()
ans="No"
if s=="hi":
  ans="Yes"
for i in range(3,len(s)):
  if s[i-3]=="h" and s[i-2]=="i" and s[i-1]=="h" and s[i]=="i":
    ans="Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
s=input()
ans="No"
for i in range(len(s)-1):
  if s[i]=="h" and s[i+1]=="i":
    ans="Yes"
    break
print(ans)

Submission status: Wrong Answer

Solution code:
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:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s = input()

if len(s) < 2:
  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)

Submission status: Wrong Answer

Solution code:
s = input()

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)

Submission status: Wrong Answer

Solution code:
s=input()
if 'hi'in s and 'hii' not in s and 'hhi' not in s :
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

s=input()
if 'hi'in s and 'hii' not in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
print("Yes" if "".join(sorted(set(input()))) == "hi" else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

if all(i == "h" for i in s[0::2]) and all(j == "i" for j in s[1::2]): print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
n =input()
print("Yes" if "hi" in n else "No")

Submission status: Wrong Answer

Solution code:
S = input()

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

print("No")

Submission status: Wrong Answer

Solution code:
s = input()
if "hii" in s:
    print("No")
elif "hi" in s:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

print('Yes') if ('hi' in s) & ('hii' not in s) else print('No')

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
n = len(s)
if n == 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")

Submission status: Wrong Answer

Solution code:
s = input()
n = len(s)
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")

Submission status: Wrong Answer

Solution code:
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+1] != 'hi':
    print('No')
    sys.exit()
print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
s = input()
for x, y in zip(s, s[1:]):
  if x == 'h' and y == 'i':
    print('Yes')
    sys.exit()
print('No')

Submission status: Wrong Answer

Solution code:
s = input()
s = s.replace('hii', '')
if s.count('hi') > 0: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if s.count('hi') > 0: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
s = input()

ans = 'No'

for i in range(len(s)):
  if i < len(s)-3 :
    if (s[i] + s[i+1] == 'hi') and s[i+2] != 'i':
      ans = 'Yes' 
  if i == len(s) -2:
    if s[i] + s[i+1] == 'hi':
      ans = 'Yes'

print(ans)

Submission status: Wrong Answer

Solution code:
str = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=list(str(input()))
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")

Submission status: Wrong Answer

Solution code:
S = input()

s_hitachi = list("hitachi")

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

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

Submission status: Wrong Answer

Solution code:
print("YNeos"[input()[:2]!="hi"::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
a =[]
for i in range(1,6):
    a += 'hi'*i
if s in a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input()
if 'hi' not in a:
    print('No')
elif 'hii' not in a:
    print('Yes')
elif 'hi'in a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input()
if 'hi' not in a:
    print('No')
elif 'hii' not in a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' not in s and 'hii' not in s:
    print('No')
elif 'hi' in s and 'hii' in s:
    print('Yes')
elif'hii' in s:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' not in s:
    print('No')
elif 'hi' in s and 'hii' in s:
    print('Yes')
elif'hii' in s:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' not in s:
    print('No')
elif 'hi' in s and 'hii' in s:
    print('Yes')
elif'hi' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' not in s:
    print('No')
elif 'hi' in s and 'hii' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' not in s:
    print('No')
elif 'hii' in s:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if 'hi' in s and 'iih' not in s[::-1]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
arr = [s[i*2:i*2+2] for i in range(0, len(s)//2)]
if len([x for x in arr if x != 'hi']):
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
import sys

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


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

Submission status: Wrong Answer

Solution code:
import sys

s = list(map(str,input()))
cnth = 0
cnti = 0

for i in s:
    if i == "h":
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        elif cnti == 1:
            cnth = 0
            cnti = 0
        elif cnth == 1:
            cnth = 0
        else:
            cnth = 1
    elif i == "i":
        if cnth == 1 and cnti == 0:
            cnti = 1
        elif cnth == 1 and cnti == 1:
            cntt = 0
            cnti = 0
    else:
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 0
            cnti = 0

if cnth == 1 and cnti == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

s = list(map(str,input()))
cnth = 0
cnti = 0

for i in s:
    if i == "h":
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        elif cnti == 1:
            cnth = 0
            cnti = 0
        else:
            cnth = 1
    elif i == "i":
        if cnth == 1 and cnti == 0:
            cnti = 1
        elif cnth == 1 and cnti == 1:
            cntt = 0
            cnti = 0
    else:
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 0
            cnti = 0

if cnth == 1 and cnti == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S = input()
#a,b = map(int,input().split())

ans = "Yes"
if len(S) <= 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)

Submission status: Wrong Answer

Solution code:
import sys

s = list(map(str,input()))
cnth = 0
cnti = 0

for i in s:
    if i == "h":
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 1
    elif i == "i":
        if cnth == 1 and cnti == 0:
            cnti = 1
        elif cnth == 1 and cnti == 1:
            cntt = 0
            cnti = 0
    else:
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 0
            cnti = 0

if cnth == 1 and cnti == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

s = list(map(str,input()))
cnth = 0
cnti = 0

for i in s:
    if i == "h":
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 1
    elif i == "i":
        if cnth == 1 and cnti == 0:
            cnti = 1
        elif cnth == 1 and cnti == 1:
            cntt = 0
            cnti = 0
    else:
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 0
            cnti = 0
    print(cnth,cnti)

if cnth == 1 and cnti == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

s = list(map(str,input()))
cnth = 0
cnti = 0

for i in s:
    if i == "h":
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cnth = 1
    elif i == "i":
        if cnth == 1 and cnti == 0:
            cnti = 1
        elif cnth == 1 and cnti == 1:
            cntt = 0
            cnti = 0
    else:
        if cnth == 1 and cnti == 1:
            print("Yes")
            sys.exit()
        else:
            cntt = 0
            cnti = 0

if cnth == 1 and cnti == 1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

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

for i in s:
    if i == "h":
        cnt = 1
    elif i == "i":
        if cnt == 1:
            print("Yes")
            sys.exit()
        else:
            cnt = 0
    else:
        cnt = 0
        continue

print("No")

Submission status: Wrong Answer

Solution code:
import sys

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

for i in s:
    if i == "h":
        cnt = 1
    elif i == "i":
        if cnt == 1:
            print("Yes")
            sys.exit()
    else:
        cnt = 0
        continue

print("No")

Submission status: Wrong Answer

Solution code:
S = input()
#a,b = map(int,input().split())

ans = "Yes"
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)

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
if "hi" in s:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()
if not(s in 'h' or s in 'i'):
    print('No')
elif s.count('h') == s.count('i'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
if s.count('h') == s.count('i'):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if 'hi' in input():
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

s = readline().rstrip().decode()
if 'hi' in s:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
ng = True
s = input()
for i in range(1, 5):
    if s=="hi"*i: ng = False
print("YNeos"[ng::2])

Submission status: Wrong Answer

Solution code:
if input().count('hi') > 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()

ans = False
if s[0:2] == s[2:4]:
        ans = True

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

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

Submission status: Wrong Answer

Solution code:
s = input()

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

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

Submission status: Wrong Answer

Solution code:
from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
#    d = m - k[i] - k[j]
#    if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#

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

def readInts():
  return list(map(int,input().split()))
S = input()
ok = False
for i in range(len(S)):
    if S[i] == 'h':
        if i+1 < len(S):
            if S[i+1] == 'i':
                if i+2 < len(S):
                    if S[i+2] == 'i':
                        ok = False
                    else:
                        ok = True
if ok:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=input()
if s.count("hi")>=1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

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

Submission status: Wrong Answer

Solution code:
S = input()

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

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

Submission status: Wrong Answer

Solution code:
S = input()

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

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

Submission status: Wrong Answer

Solution code:
S = input()

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

print(ans)

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import re


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
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

print(ans)

Submission status: Wrong Answer

Solution code:
S = str(input())
ans = 'Yes'
for i in range(0,len(S)-1,2):
  if S[i]+S[i+1] != 'hi':
    ans = 'No'
    break

print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
S = S.replace("hi",":")
if len(set(list(S))) == 1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
from sys import stdin
import math
import re
import queue

input = stdin.readline

MOD = 1000000007
INF = 122337203685477580

def solve():
    str = (input().rstrip())
    if('hi' in str):
        print("Yes")
    else:
        print("No")    

if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

Solution code:
s = str(input())
kekka = 1
for i in range(len(s)):
  if i%2 == 0 and s[i] != 'h':
    kekka = -1
    break
  elif i%2 == 1 and s[i] != 'i':
    kekka = -1
    break
if kekka == 1 and s != 'h':
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
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:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
t=1

for i in range(0,len(S),2):
		if S[i]=='h':
			t *= 1
		else:
			t *=0
for i in range(1,len(S),2):
	  if  S[i]=='i':
	  	t *=1
	  else:
	  	t *=0

if t==1:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Wrong Answer

Solution code:
print('Yes') if 'hi' in input() else print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=raw_input()
if "hi" in s:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
S = input()
for i in range(len(S)):
    if (i%2 == 0 and S[i] != "h") or (i%2 == 1 and S[i] != "i"):
        print("No")
        sys.exit()
        break
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()
if S.count("hi"):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(0,len(s),2):
    if i < len(s)-1:
        break
    if s[i:i+2] != 'hi':
        print('No')
        exit()
print('Yes')

Submission status: Wrong Answer

Solution code:
print('Yes' if 'hi' in input() else 'No')

Submission status: Wrong Answer

Solution code:
print('yes' if 'hi' in input() else 'No')

Submission status: Wrong Answer

Solution code:
S = input()
List1= []
List2 = []
n1 = 0
n2 = 0
for i in range(0,len(S),2):
  List1.append(S[i])
for i in range(1,len(S),2):
  List2.append(S[i])
n1 = List1.count("h")
n2 = List2.count("i")
if n1 == len(List1) and n2 == len(List2):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
S = input()

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

if hi == "":
   print("yes")
else:
   print("No")

Submission status: Wrong Answer

Solution code:
#from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
#from itertools import combinations # (string,3) 3回
#from collections import deque
#import collections.defaultdict(list)
#import bisect
#
#    d = m - k[i] - k[j]
#    if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#

mod = 10**9 + 7

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if "hi" in s:
  if not "hii" in s:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

s = readline().rstrip().decode()
if len(s) % 2 == 1:
    print('No')
    exit()
for i in range(len(s) // 2):
    if i % 2 == 0:
        if s[i] != 'h':
            print('No')
            exit()
    else:
        if s[i] != 'i':
            print('No')
            exit()
print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=list(input())
for i in range(len(s)-1):
 if s[i]+s[i+1]=='hi':
  if i==len(s)-2:
   print('Yes')
   exit()
  else:
   if s[i+2]=='i':
    continue
   else:
    print('Yes')
    exit()
print('No')

Submission status: Wrong Answer

Solution code:
s=list(input())
for i in range(len(s)-1):
 if s[i]+s[i+1]=='hi':
  print('Yes')
  exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
S_size = len(S)
hi_size = S.count('hi')
if S_size == hi_size * 2:
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
S=input()
for i in range(5):
	if S=="hi" *i:
		print("Yes")
		exit()
print("No")

Submission status: Wrong Answer

Solution code:
s=input()

if (s.count("hi")>=1):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
class Solution(object):
	def is_hitachi_string(self, string):

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

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

			hi_idx = (hi_idx + 1) % 2

		if hi_idx == 0:
			print 'Yes'
		else:
			print 'No'

Submission status: Wrong Answer

Solution code:
class Solution(object):
	def is_hitachi_string(self, string):

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

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

			hi_idx = (hi_idx + 1) % 2

		print 'Yes'

if __name__ == '__main__':
	sol = Solution()
	string = raw_input()
	sol.is_hitachi_string(string)

Submission status: Wrong Answer

Solution code:
class Solution(object):
	def is_hitachi_string(self, string):

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

			hi_idx = (hi_idx + 1) % 2

		print 'Yes'

if __name__ == '__main__':
	sol = Solution()
	string = raw_input()
	sol.is_hitachi_string(string)

Submission status: Wrong Answer

Solution code:
class Solution(object):
	def is_hitachi_string(self, string):

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

			hi_idx = (hi_idx + 1) % 2

		print 'Yes'

if __name__ == '__main__':
	sol = Solution()
	sol.is_hitachi_string('hii')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())

a = 0
b = 0

for i in range(len(s)):
  if i%2 == 0 and s[i] == "h":
    a += 1
  elif i%2 == 1 and s[i] == "i":
    b += 1
    
if a == b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
S=input()
if 'hi' in S:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solve(s):
    for i in range(len(s)):
        if ((i + 1) == (len(s) - 1)) and (s[i] == 'h' and s[i+1] == 'i'):
            for j in range(len(s)):
                if s[j] != 'h' or s[j] != 'i' or s[j+i] != 'i':
                    return 0
                else:
                    return 1
    return 1
        
if __name__ == "__main__":
    s = input()
    sl = solve(s)    
    if sl == 0:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
def solve(s):
    for i in range(len(s)):
        if s[i] == 'h' and s[i+1] == 'i':
            for j in range(len(s)):
                if s[j] != 'h' or s[j] != 'i':
                    return 1
                else:
                    return 0

    return 1
    
if __name__ == "__main__":
    s = input()
    sl = solve(s)
    if sl == 0:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

Solution code:
def solve(s):
    for i in range(len(s)):
        if s[i] == 'h' and s[i+1] == 'i':
            print("YES")
            return

    print("NO")
    return 
    
if __name__ == "__main__":
    s = input()
    solve(s)

Submission status: Wrong Answer

Solution code:
S = input()
flg = False
if len(S) < 2:
  print('No')
else:
  for i in range(len(S)-1):
    if S[i:i+2] == 'hi':
      print('Yes')
      flg = True
      break
  if not flg:
    print('No')

Submission status: Wrong Answer

Solution code:
large_s = input()

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


if (str_check=='0' or str_check=='02' or str_check=='024' or str_check=='0246' or str_check=='02468'):
        print("Yes")
else:
        print("No")

Submission status: Wrong Answer

Solution code:
large_s = input()

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

if (len(large_s) / 2 == len(str_check)):
    if (str_check=='0' or str_check=='02' or str_check=='024' or str_check=='0246' or str_check=='02468'):
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
large_s = input()

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

if (str_check=='0' or str_check=='02' or str_check=='024' or str_check=='0246' or str_check=='02468'):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
large_s = input()

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

if (str_check=='0' or str_check=='02' or str_check=='024' or str_check=='0246' or str_check=='02468'):
    print("YES")
else:
    print("NO")