#include #include using namespace std; int main() { char x[100],t[10]="Yardi"; cin >> x; if(strstr(x,t)) cout << "YES"; else cout << "NO"; }