#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  queue<char> q;
  q.push('h');
  q.push('e');
  q.push('l');
  q.push('l');
  q.push('o');
  string s;
  cin >> s;
  for (char ch : s) {
    if (tolower(ch) == q.front()) q.pop();
  }
  if (q.empty())
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
