#include <bits/stdc++.h>
using namespace std;
class Div2 {
 public:
  int n;
  string ans, cmp;
  int recur(string s, int idx, int cmp_idx) {
    if (cmp_idx > 4 or idx >= n) {
      return 0;
    }
    if (s[idx] == cmp[cmp_idx]) {
      ans += s[idx];
      cmp_idx++;
    }
    return recur(s, idx + 1, cmp_idx);
  }
  void solve() {
    string s;
    cin >> s;
    n = (int)s.size();
    ans = "";
    cmp = "hello";
    recur(s, 0, 0);
    cout << (ans == cmp ? "YES" : "NO") << "\n";
  }
  void testcases() {
    int t;
    cin >> t;
    for (int i = 0; i < t; i++) {
      solve();
    }
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  Div2 s;
  s.solve();
  return 0;
}
