#include #include using namespace std; int main() { char sir[100]; scanf ("%s", sir); int len = strlen(sir); for (int i = 4; i < len; ++i) { if (sir[i] != 'i') continue; if (sir[i-1] != 'd') continue; if (sir[i-2] != 'r') continue; if (sir[i-3] != 'a') continue; if (sir[i-4] != 'Y') continue; printf ("DA\n"); return 0; } printf ("NU\n"); return 0; }