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