#include #include using namespace std; int main() { string s; getline(cin,s); if(s.find("Yardi")!=s.npos) cout<<"YES\n"; else cout<<"NO\n"; }