{"problem":{"name":"G. Fake News (easy)","description":{"content":"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 co","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF802G"},"statements":[{"statement_type":"Markdown","content":"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...\n\n## Input\n\nThe first and only line of input contains a single nonempty string _s_ of length at most 1000 composed of lowercase letters (_a_\\-_z_).\n\n## Output\n\nOutput _YES_ if the string _s_ contains _heidi_ as a subsequence and _NO_ otherwise.\n\n[samples]\n\n## Note\n\nA string _s_ contains another string _p_ as a subsequence if it is possible to delete some characters from _s_ and obtain _p_.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"今天是4月1日，Heidi 怀疑她今天阅读的新闻是假的，她不想在所有参赛者面前出丑。她知道，如果一则新闻中包含 _heidi_ 作为子序列，那么它就是假的。请帮助 Heidi 判断给定的新闻是否真实，但请务必低调处理...\n\n输入的第一行也是唯一一行包含一个非空字符串 #cf_span[s]，其长度不超过 #cf_span[1000]，由小写字母 (_a_-_z_) 组成。\n\n如果字符串 #cf_span[s] 包含 _heidi_ 作为子序列，则输出 _YES_，否则输出 _NO_。\n\n字符串 #cf_span[s] 包含另一个字符串 #cf_span[p] 作为 #cf_span(class=[tex-font-style-underline], body=[subsequence])，当且仅当可以通过从 #cf_span[s] 中删除某些字符得到 #cf_span[p]。\n\n## Input\n\n输入的第一行也是唯一一行包含一个非空字符串 #cf_span[s]，其长度不超过 #cf_span[1000]，由小写字母 (_a_-_z_) 组成。\n\n## Output\n\n如果字符串 #cf_span[s] 包含 _heidi_ 作为子序列，则输出 _YES_，否则输出 _NO_。\n\n[samples]\n\n## Note\n\n字符串 #cf_span[s] 包含另一个字符串 #cf_span[p] 作为 #cf_span(class=[tex-font-style-underline], body=[subsequence])，当且仅当可以通过从 #cf_span[s] 中删除某些字符得到 #cf_span[p]。","is_translate":true,"language":"Chinese"},{"statement_type":"Markdown","content":"Let $ s $ be a string of length at most 1000 over the alphabet $ \\{a, b, \\dots, z\\} $.  \nLet $ p = \\texttt{\"heidi\"} $.  \n\nDetermine whether $ p $ is a subsequence of $ s $.\n\nOutput \"YES\" if $ p \\sqsubseteq s $, otherwise output \"NO\".","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF802G","tags":["implementation","strings"],"sample_group":[["abcheaibcdi","YES"],["hiedi","NO"]],"created_at":"2026-03-03 11:00:39"}}