#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s2 = "hello";
  int t = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s2[t] == s[i]) t++;
    if (t == s2.size()) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
