Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<bits/stdc++.h>
- #define ll long long
- using namespace std;
- int main() {
- string s;
- cin>>s;
- string mys = "hello";
- int len =s.size();
- int z = 0 ;
- for(int i =0 ; i<len ; i++)
- {
- while(true)
- {
- if (s[i] == mys[z])
- z++;
- }
- }
- if (z == 5 )
- {
- cout<<"YES";
- }
- else
- cout<<"NO";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement