#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, m, l, mx = 0, sum = 0, tired, hco = 0, eco = 0, lco = 0, oco = 0;
  string s;
  vector<char> a;
  cin >> s;
  char s2[10] = "hello";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == s2[mx]) {
      mx++;
      sum++;
    }
  }
  if (sum == 5)
    cout << "YES";
  else
    cout << "NO";
}
