#include<iostream>
using namespace std;
int main(){
  string input;
  cin>>input;
  for(int i=0;input[i]!='\0';i+=2){
    if(input[i]!='h'||input[i+1]!='i'){cout<<"No";return 0;}
  }
  cout<<"Yes";
  return 0;
}