#include <bits/stdc++.h>
using namespace std;
string s, mau="hello";
int i, j=0;
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	cin >> s;
	for (i=0; s[i]; i++){
		if (s[i]==mau[j]){
			cout << s[i] << " " << i << " " << j << endl;
			j++;
			if (j==5) break;
		}
	}
	if (j==5) cout << "YES";
	else cout << "NO";
	return 0;
}