#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string aux = "hello";
  int p = 0;
  for (int i = 0; i < 5; i++) {
    while (p < s.size() && s[p] != aux[i]) p++;
    if (p >= s.size()) {
      cout << "NO\n";
      return;
    }
    p++;
  }
  cout << "YES\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
