hitachi [] = True
hitachi s = if (take 2 s) == "hi" then hitachi $ drop 2 s
                                else False

main = do
    s <- getLine
    if hitachi s then putStrLn "Yes"
                 else putStrLn "No"