#include <iostream>
using namespace std;
string s,a="";
int main(void){
    cin>>s;
    for(int i=0;i<5;i++){
        a+="hi";
        if(s==a){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
}
