#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string str = "hello";
  int j = 0;
  int ans = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == str[j]) {
      ans++;
      j++;
    }
    if (ans == 5) {
      break;
    }
  }
  if (ans == 5) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
