main :: IO ()
main = do
  s <- getLine
  putStrLn $ if isHitachi s then "Yes" else "No"

isHitachi :: String -> Bool
isHitachi "hi"         = True
isHitachi ('h':'i':xs) = isHitachi xs
isHitachi _            = False