function Main (S) {
  var ans = "Yes";
  var tt;
  S = S.split("\n")[0].split("hi").map(inp => inp != "" ? ans = "No":tt=4);
  console.log(ans);
}
     
Main(require("fs").readFileSync("/dev/stdin", "utf8"));