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