#define _USE_MATH_DEFINES
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <numeric>
#include <functional>
#include <cctype>
#include <list>
#include <limits>
#include <cassert>
//#include <boost/multiprecision/cpp_int.hpp>



using namespace std;
using Int = long long;
//using namespace boost::multiprecision;

const double EPS = (1e-10);
long long const MOD = 1000000007;

long long mod_pow(long long x, long long n) {
    long long res = 1;
    for(int i = 0;i < 60; i++){
        if(n >> i & 1) res = res * x % MOD;
        x = x * x % MOD;
    }
    return res;
}

template<typename T>
T gcd(T a, T b) {
    return b != 0 ? gcd(b, a % b) : a;
}

template<typename T>
T lcm(T a, T b) {
    return a * b / gcd(a, b);
}

void fastInput() {
    cin.tie(0);
    ios::sync_with_stdio(false);
}

int main(void) {
    int N, U, V, M; cin >> N >> U >> V >> M;

    map<int, pair<int, int>> rabbitM;
    map<int, pair<int, int>> catM;
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < N; j++) {
            int tmp; cin >> tmp;
            rabbitM[tmp] = {i, j};
        }
    }
    for (int i = 0; i < N; i++) {
        for (int j = 0; j < N; j++) {
            int tmp; cin >> tmp;
            catM[tmp] = {i, j};
        }
    }

    vector<int> rabbitY(N);
    vector<int> rabbitX(N);
    vector<int> rabbitNaname(2);
    vector<int> catY(N);
    vector<int> catX(N);
    vector<int> catNaname(2);
    int flag = 0;
    if (N == 1) {
        U *= 4;
        V *= 4;
    }

    for (int i = 0; i < M; i++) {
        int card; cin >> card;
        if (rabbitM.count(card)) {
            pair<int, int> p = rabbitM[card];
            rabbitY[p.first]++;
            rabbitX[p.second]++;
            int fR[2] = {0};
            if (p.first + p.second == N-1) {
                rabbitNaname[0]++;
                fR[0] = 1;
            }
            if (p.first + (N-1-p.second) == N-1) {
                rabbitNaname[1]++;
                fR[1] = 1;
            }
            if (rabbitY[p.first] == N) U--;
            if (rabbitX[p.second] == N) U--;
            if (rabbitNaname[0] == N && fR[0]) U--;
            if (rabbitNaname[1] == N && fR[1]) U--;
        }
        if (catM.count(card)) {
            pair<int, int> p = catM[card];
            catY[p.first]++;
            catX[p.second]++;
            int fC[2] = {0};
            if (p.first + p.second == N-1) {
                catNaname[0]++;
                fC[0] = 1;
            }
            if (p.first + (N-1-p.second) == N-1) {
                catNaname[1]++;
                fC[1] = 1;
            }
            if (catY[p.first] == N) V--;
            if (catX[p.second] == N) V--;
            if (catNaname[0] == N && fC[0]) V--;
            if (catNaname[1] == N && fC[1]) V--;
        }
        if (U <= 0 && 0 < V) {
            flag = 1;
            break;
        } else if (0 < U && V <= 0) {
            flag = 2;
            break;
        }
    }
    if (flag == 1) {
        cout << "USAGI" << endl;
    } else if (flag == 2) {
        cout << "NEKO" << endl;
    } else {
        cout << "DRAW" << endl;
    }
    return 0;
}





Measured memory_bytes: 21044