#include #include #include #include #include #include #include #include #include #include #include #include #include #define JUDGE using namespace std; string S; string pat = "Yardi"; int main() { #ifndef JUDGE freopen("input.txt", "r", stdin); #endif int i; cin >> S; if (S.find(pat) != -1) cout << "YES\n"; else cout << "NO\n"; #ifndef JUDGE while (1); #endif return 0; }