#include <iostream>
#include <string.h>

using namespace std;

int main()
{
    char A[100],B[5];
    strcpy(B,"Yardi");
    cin>>A;
    if((strstr(A,B))==NULL)
        cout<<"NU";
    else
        cout<<"DA";


    return 0;
}