#include #include using namespace std; int main() { char A[100],B[5]; strcpy(B,"Yardi"); cin>>A; if((strstr(A,B))==NULL) cout<<"NO"; else cout<<"YES"; return 0; }