Fake News (easy)

题意翻译

给定一个字符串询问能否通过删除一些字母使其变为`“heidi”`。 如果可以输出“YES”,不然为“NO”

题目描述

As it's the first of April, Heidi is suspecting that the news she reads today are fake, and she does not want to look silly in front of all the contestants. She knows that a newspiece is fake if it contains heidi as a subsequence. Help Heidi assess whether the given piece is true, but please be discreet about it...

输入输出格式

输入格式


The first and only line of input contains a single nonempty string $ s $ of length at most $ 1000 $ composed of lowercase letters (a-z).

输出格式


Output YES if the string $ s $ contains heidi as a subsequence and NO otherwise.

输入输出样例

输入样例 #1

abcheaibcdi

输出样例 #1

YES

输入样例 #2

hiedi

输出样例 #2

NO

说明

A string $ s $ contains another string $ p $ as a subsequence if it is possible to delete some characters from $ s $ and obtain $ p $ .