Run ID:134036

提交时间:2025-10-25 15:05:10

#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; string s1="hello"; int s1_i=0; int len=s.length(); for(int i=0;i<len;i++){ if(s[i]==s1[s1_i]) s1_i++; } if(s1_i==5) cout<<"YES"; else cout<<"NO"; return 0; }