#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, a;
  a = "hello";
  cin >> s;
  int i, j, k = 0;
  for (i = 0, j = 0; j < a.size(); i++) {
    if (i >= s.size()) break;
    if (s[i] == a[j]) {
      j++;
    }
  }
  if (j == a.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
