object Main extends App {                                                                                                                                      import scala.util.matching.Regex
  val sc = new java.util.Scanner (System.in)
  val s:String = sc.nextLine
  val pattern:Regex = "(hi)+".r
  val result = s match {
    case pattern(_) => println("Yes")
    case _ => println("No")
  }
}