#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  size_t pos = 0;
  while (pos < s.length() && s[pos] != 'h') ++pos;
  ++pos;
  while (pos < s.length() && s[pos] != 'e') ++pos;
  ++pos;
  while (pos < s.length() && s[pos] != 'l') ++pos;
  ++pos;
  while (pos < s.length() && s[pos] != 'l') ++pos;
  ++pos;
  while (pos < s.length() && s[pos] != 'o') ++pos;
  if (pos < s.length()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
