#JSUTFPC2025B. Hachimionameruto —— 哈基米有南北绿豆
Hachimionameruto —— 哈基米有南北绿豆
Statement
Hachimi, originally referring to a type of honey drink.
Recently, Timothy felt he wasn't impressive enough because his roommates had accidentally stumbled upon "licking the honeycomb" and became curious, so he decided to search for it on Bilibili, and now every day in the dorm is:
ah siha yaku naru ~
wa xia ma zi li man bo ~
hakimi dabu ludu ......
This task requires you to complete a perpetual motion machine named "onamerut". The rules for this tool are:
- If the string matches the substring "hachimi" [1], then output "Yes";
- Otherwise, output "No".
Input
The input consists of a single line containing a string consisting of lowercase letters, where the length of satisfies .
Output
If the string matches the substring hachimi, output Yes. Otherwise, output No. The output is not case-sensitive; for example, YES and yEs are both considered as Yes.
Samples
hachimionameruto
Yes
himionhrutoameac
No
mabo
No
A string is said to match a substring if and only if every character of appears in and must be adjacent in position and in the same order as in the original string. ↩︎