#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "hello";
  int i = 0, j = 0;
  int t = 0;
  string str;
  getline(cin, str);
  while (i < str.length() && j < s.length()) {
    if (str[i] == s[j]) {
      i++;
      j++;
      t++;
      if (t == 5) {
        break;
      }
    } else {
      i++;
    }
  }
  if (t == 5) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
