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