function main(S) {
 
    //hihi, hiii, dadahi, dahiida
 
    let pass = 'Yes';
 
    S.split('hi').forEach((v) => {
        if (v.length > 0) {
            pass = 'No';
        }
    })
 
    return pass;
}