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