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.
S = input()
#print(S)
ss = S.split('hi')
#print(ss)
len_sum = sum([len(x) for x in ss])
#print(len_sum)
print(len_sum == 0)
S = input()
#print(S)
ss = S.split('hi')
#print(ss)
len_sum = sum([len(x) for x in ss])
#print(len_sum)
if len_sum == 0:
  print('Yes')
else:
  print('No')
