Vasya has recently learned to type and log on to the Internet. He immediately entered a chat room and decided to say hello to everybody. Vasya typed the word s. It is considered that Vasya managed to say hello if several letters can be deleted from the typed word so that it resulted in the word "hello". For example, if Vasya types the word "ahhellllloou", it will be considered that he said hello, and if he types "hlelo", it will be considered that Vasya got misunderstood and he didn't manage to say hello. Determine whether Vasya managed to say hello by the given word s.
Vasya 最近學會了打字和登錄互聯網。 他立即進了一個聊天室,決定跟大家打個招呼。 Vasya 輸入了單詞 s。 如果可以從輸入的單詞中刪除幾個字母,從而產生單詞“hello”,則認為 Vasya 成功打了聲招呼。 例如,如果 Vasya 輸入單詞“ahhellllloou”,則認為他打招呼,如果輸入“hlelo”,則認為 Vasya 被誤解而沒有打招呼。 確定 Vasya 是否成功通過給定的單詞 s 打招呼。
The first and only line contains the word s, which Vasya typed. This word consisits of small Latin letters, its length is no less that 1 and no more than 100 letters.
第一行也是唯一一行包含 Vasya 輸入的單詞 s。 這個詞由小拉丁字母組成,長度不少於1,不多於100個字母。
If Vasya managed to say hello, print "YES", otherwise print "NO".
如果 Vasya 成功打招呼,則打印“YES”,否則打印“NO”。
ahhellllloou
YES
hlelo
NO
ID | User | Problem | Subject | Hit | Post Date |
沒有發現任何「解題報告」 |