#include <bits/stdc++.h>
using namespace std;
int main() {
  string A;
  cin >> A;
  char a[5];
  a[0] = 'h';
  a[1] = 'e';
  a[2] = 'l';
  a[3] = 'l';
  a[4] = 'o';
  int tot = 0;
  for (int i = 0; i < A.size(); i++) {
    if (a[tot] == A[i]) {
      tot++;
    }
    if (tot == 5) break;
  }
  if (tot == 5)
    cout << " YES" << endl;
  else {
    cout << "NO" << endl;
  }
  return 0;
}
