#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string c = "hello";
  int n1, n2, i, j;
  n1 = s.length();
  n2 = c.length();
  i = 0;
  j = 0;
  while (i < n1 && j < n2) {
    if (s[i] == c[j]) j++;
    i++;
  }
  if (j == n2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
