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()
t =0 
for s in s:
  if s == "h":
    t=1
  elif s =="i":
    if t == 0:
      t = 0
      print("No")
      quit()
  else:
    print("No")
    quit()
if t == 1:
  print("No")
else:
  print("Yes")
s = input()
t =0 
for s in s:
  if s == "h":
    t=1
  elif s =="i":
    if t == 0:
      t = 0
      print("No")
      quit()
    t = 0
  else:
    print("No")
    quit()
if t == 1:
  print("No")
else:
  print("Yes")