We’re preparing your current view and syncing the latest data.
You are given a string representing a chat room name. You need to determine if the name contains the characters 'h', 'e', 'l', 'l', 'o' as a subsequence (not necessarily contiguous). If it does, print "YES", otherwise print "NO".
The input is a single line containing a string consisting of lowercase English letters.
Print "YES" if the string contains the subsequence "hello", otherwise print "NO".
The length of the chat room name string is between 1 and 100 characters.
Example 1
Input
ahhellllloou
Output
YES
Explanation
The characters 'h','e','l','l','o' appear in order within the given string.
Example 2
Input
hlelo
Output
NO
Explanation
The characters 'h','e','l','l','o' do not appear in order.