let input_line: String = readLine()!

let hitatchistr = "hi"
var s = ""
var exists = false
for i in 0..<5 {
  s += hitatchistr
  if s == input_line {
  	print("YES")
    //return 
    exists = true
  }
}

if exists {
	print("NO")  
}

