#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a = 0, b, c, res = 0, ver = 0, acu = 0, ja = 0;
  string x;
  cin >> x;
  for (int i = 0; i < x.size(); i++) {
    if (x[i] == 'h' && res == 0)
      res++;
    else if (x[i] == 'e' && res == 1)
      res++;
    else if (x[i] == 'l' && res == 2)
      res++;
    else if (x[i] == 'l' && res == 3)
      res++;
    else if (x[i] == 'o' && res == 4) {
      res++;
      break;
    }
  }
  if (res == 5)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
