# 58A - Chat room
# http://codeforces.com/problemset/problem/58/A

import re
s = input()
if re.match(r'.*h.*e.*l.*l.*o.*', s):
    print('YES')
else:
    print('NO')

fb8a0df34a52355a421f6ce2f74bae52d7ef25a1
<mask token>

<mask token>
if re.match('.*h.*e.*l.*l.*o.*', s):
    print('YES')
else:
    print('NO')

<mask token>
s = input()
if re.match('.*h.*e.*l.*l.*o.*', s):
    print('YES')
else:
    print('NO')

import re
s = input()
if re.match('.*h.*e.*l.*l.*o.*', s):
    print('YES')
else:
    print('NO')

# 58A - Chat room
# http://codeforces.com/problemset/problem/58/A

import re
s = input()
if re.match(r'.*h.*e.*l.*l.*o.*', s):
    print('YES')
else:
    print('NO')
