#include <bits/stdc++.h>
using namespace std;

int main(){
  string S; cin >> S;
  while(S.size()){
    if(S.substr(0,2)=="hi") S=S.substr(2);
    else break;
  }
  cout << (S.size()==0?"Yes":"No") << endl;
}