#include <bits/stdc++.h>
using namespace std;
#define int long long   // <-----!!!!!!!!!!!!!!!!!!!

#define rep(i,n) for (int i=0;i<(n);i++)
#define rep2(i,a,b) for (int i=(a);i<(b);i++)
#define rrep(i,n) for (int i=(n)-1;i>=0;i--)
#define rrep2(i,a,b) for (int i=(a)-1;i>=b;i--)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define printV(_v) for(auto _x:_v){cout<<_x<<" ";}cout<<endl
#define printVS(_vs) for(auto _x : _vs){cout << _x << endl;}
#define printVV(_vv) for(auto _v:_vv){for(auto _x:_v){cout<<_x<<" ";}cout<<endl;}
#define printP(_p) cout << _p.first << " " << _p.second << endl
#define printVP(_vp) for(auto _p : _vp) printP(_p);

typedef long long ll;
typedef pair<int, int> Pii;
typedef tuple<int, int, int> TUPLE;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<vvi> vvvi;
typedef vector<vector<int>> Graph;
const int inf = 1e9;
const int mod = 1e9 + 7;

signed main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int n, m;
    vi u(2);
    cin >> n >> u[0] >> u[1] >> m;
    vector<map<int, Pii>> mp(2);
    rep(k, 2) rep(i, n) rep(j, n) {
        int p;
        cin >> p;
        mp[k][p] = Pii(i, j);
    }
    vvi row(2, vi(n, n));
    vvi col(2, vi(n, n));
    vi diag1(2, n); // x = y
    vi diag2(2, n); // x + y = n - 1
    rep(i, m) {
        int p;
        cin >> p;
        rep(k, 2) {
            if (mp[k].count(p)) {
                int x, y;
                tie(x, y) = mp[k][p];
                row[k][x]--;
                if (row[k][x] == 0) u[k]--;
                if (n == 1) continue;
                col[k][y]--;
                if (col[k][y] == 0) u[k]--;
                if (x == y) {
                    diag1[k]--;
                    if (diag1[k] == 0) u[k]--;
                }
                if (x + y == n - 1) {
                    diag2[k]--;
                    if (diag2[k] == 0) u[k]--;
                }
            }
        }

        if (u[0] <= 0 && u[1] > 0) {
            cout << "USAGI" << endl;
            return 0;
        } else if (u[0] > 0 && u[1] <= 0) {
            cout << "NEKO" << endl;
            return 0;
        } else if (u[0] < 0 && u[1] < 0) {
            cout << "DRAW" << endl;
            return 0;
        }
    }

    cout << "DRAW" << endl;

}