#include #include using namespace std; int main() { char s[101]; cin.get(s,100); if(strstr(s,"Yardi") != NULL) cout<<"YES\n"; else cout<<"NO\n"; return 0; }