function Main(input) {
  var ans = "No";
  var hi = "hi"
  for(var i=0;i<5;i++){
    if(input==hi){
      ans="Yes";
      break;
    }else{
    	hi+="hi";
    }
  }
  console.log(ans);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));