#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1;
  cin >> s1;
  int i;
  string s2 = "hello";
  stack<char> a;
  for (i = s2.size() - 1; i >= 0; i--) a.push(s2[i]);
  for (i = 0; i < s1.size(); i++) {
    if (a.empty()) continue;
    if (a.top() == s1[i]) a.pop();
  }
  if (a.empty())
    cout << "YES";
  else
    cout << "NO";
}
