#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  cin >> s1;
  s2 = "hello";
  int i = 0, j = 0, count = 0;
  int l = s1.length();
  while (l) {
    if (s1[i] != s2[j]) i++;
    if (s1[i] == s2[j]) {
      i++;
      j++;
      count++;
    }
    l--;
  }
  if (count > 4)
    cout << "YES";
  else
    cout << "NO";
}
