#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  string temp = "hello";
  int q = 0;
  bool lol = true;
  for (int i = 0; i < s.length(); ++i) {
    if (q == 5) {
      lol = false;
      break;
    }
    if (s[i] == temp[q]) q++;
  }
  if (q == 5) lol = false;
  if (lol == false)
    cout << "YES";
  else
    cout << "NO";
}
