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