#include <cstdio>
#include <cstring>
using namespace std;
char s[105];
int main()
{
    //freopen("date.in","r",stdin);
    //freopen("date.out","w",stdout);
    gets(s);
    if(strstr(s,"Yardi")){
        printf("YES");
    }
    else{
        printf("NO");
    }
    return 0;
}