#include <bits/stdc++.h>
int main(void) {
  std::string word;
  std::cin >> word;
  std::string looking_for = "hello";
  auto curr_char = looking_for.begin();
  for (auto it = word.begin(), end = word.end(); it < end; ++it) {
    if (*it == *curr_char) ++curr_char;
  }
  if (curr_char == looking_for.end())
    std::cout << "YES" << std::endl;
  else
    std::cout << "NO" << std::endl;
}
