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