function Main(input) {
  var ret = "Yes";
  for(i=0;i<input.length;i=i+2) {
    if (input.indexOf("hi",i)!=-1) ret="No";
  }
  console.log(ret);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
