题库练习 Fake News (easy)
← 上一题 下一题 →

A10889 | Fake News (easy)

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

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
C++ 编辑器
输入
输出