#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k = 0, c = 0;
  char s[100], a[6] = "hello";
  cin >> s;
  int len = strlen(s);
  for (i = 0; i < len; i++) {
    if (s[i] == a[k]) {
      c++;
      k++;
    }
  }
  if (c == 5)
    cout << "YES";
  else
    cout << "NO";
}
