object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n: String = sc.next()

    val ans = if (n.matches("^(hi)+$")) "Yes" else "No"
    println(ans)
  }
}
