fun main(args: Array<String>) {
    val lines = mutableListOf<String>()
    lines.add(readLine()!!)
    println(answer(lines.joinToString("\n")))
}

fun answer(input: String): String {
    return if (input.replace("hi", "").length === 0) { "Yes" } else { "No" }
}
