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