#include #include using namespace std; char s[100000000]; int main() { cin>>s; if(strstr(s,"Yardi")) cout<<"YES"; else cout<<"NO"; return 0; }