#include <bits/stdc++.h>
int func(int, int);
int a[100005];
int main() {
  int n, k = 0, m[3], i = 0, cnt = 0, j = 0, sum = 0, d = 0;
  char s[1001], st[7] = "hello", str[1001];
  scanf("%s", s);
  for (i = 0; s[i]; i++) {
    if (s[i] == st[j]) {
      j++;
    }
  }
  if (j == 5)
    printf("YES");
  else
    printf("NO");
  return 0;
}
