#include <bits/stdc++.h>
using namespace std;
int main() {
  string word, hello = "hello";
  int counter = 0;
  cin >> word;
  for (char l : word) {
    if (l == hello[counter]) {
      counter++;
    }
    if (counter == 5) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
