#include<fstream>
#include<cstring>
using namespace std;
ifstream f("regex.in");
ofstream fout("regex.out");
char S[103],*p;;
int main()
{
    f.getline(S,103);
    p=strstr(S,"Yardi");
    if(p) fout<<"YES";
     else fout<<"NO";

    return 0;
}