#include <bits/stdc++.h>
using namespace std;
int finder(string&, char, int&);
int main() {
  string s;
  cin >> s;
  int r = 0, i = 0;
  r += finder(s, 'h', i);
  r += finder(s, 'e', i);
  r += finder(s, 'l', i);
  i++;
  r += finder(s, 'l', i);
  r += finder(s, 'o', i);
  if (r == 5)
    cout << "YES";
  else
    cout << "NO";
}
int finder(string& w, char c, int& index) {
  for (int i = index; i < w.length(); i++)
    if (w[i] == c) {
      index = i;
      return 1;
    }
  return 0;
}
