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