#include <bits/stdc++.h>
long long gcd(long long x, long long y) { return (!y) ? x : gcd(y, x % y); }
long long lcm(long long x, long long y) { return ((x / gcd(x, y)) * y); }
long long fact(long long n) { return !n ? 1 : n * fact(n - 1); }
using namespace std;
int main() {
  string s, x = "hello";
  cin >> s;
  int c = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == x[c]) c++;
    if (c == 5) break;
  }
  cout << ((c == 5) ? "YES" : "NO");
}
