#include <iostream>
#include <cstring>
using namespace std;
int main()
{
    char x[100];
    cin >> x;
    if(strstr(x,"Yardi"))   cout << "YES";
    else                    cout << "NO";
}