function Main(input) {
  if (input === "hi" || input === "hihi" || input === "hihihi" || input === "hihihihi" || input === "hihihihihi"){console.log("Yes");}
  else {console.log("No");}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));