#include #include using namespace std; int main() { string s; string a = "Yardi"; cin >> s; std::size_t found = s.find(a); if ( found != string::npos ) cout << "YES\n"; else cout << "NO\n"; return 0; }