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