CF802G.Fake News (easy)

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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 ss of length at most 10001000 composed of lowercase letters (a-z).

输出格式

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

输入输出样例

  • 输入#1

    abcheaibcdi
    

    输出#1

    YES
  • 输入#2

    hiedi
    

    输出#2

    NO

说明/提示

A string ss contains another string pp as a subsequence if it is possible to delete some characters from ss and obtain pp .

首页