#include <iostream>
#include <vector>
#include <utility>
using namespace std;

int main(){
    int n,m, g[2];
    cin >> n >> g[0] >> g[1] >> m;
    
    vector<vector<pair<int,int> > > sheet(2, vector<pair<int,int> >((int)1e6+1, make_pair(-1,-1)));
    for(int k=0; k<2; k++){
        for(int i=0; i<n; i++){
            for(int j=0; j<n; j++){
                int num;
                cin >> num;
                sheet[k][num] = make_pair(i,j);
            }
        }
    }
    
    vector<vector<int> > bingo1(2, vector<int>(n+1, 0)), bingo2(2, vector<int>(n+1, 0));
    int winner=-1;
    for(int i=0; i<m; i++){
        int num;
        cin >> num;
        if(winner!=-1) continue;
        
        for(int j=0; j<2; j++){
            if(sheet[j][num].first!=-1){
                if(n==1){
                    g[j]--;
                    continue;
                }
                int x=sheet[j][num].first;
                int y=sheet[j][num].second;
                bingo1[j][x]++;
                bingo2[j][y]++;
                if(bingo1[j][x]==n) g[j]--;
                if(bingo2[j][y]==n) g[j]--;
                if(x==y){
                    bingo1[j][n]++;
                    if(bingo1[j][n]==n) g[j]--;
                }
                if(x+y==n-1){
                    bingo2[j][n]++;
                    if(bingo2[j][n]==n) g[j]--;
                }
            }
        }
        if(g[0]<=0){
            if(g[1]<=0){
                winner=2;
            }else{
                winner=0;
            }
        }else{
            if(g[1]<=0){
                winner=1;
            }
        }
    }
    
    if(winner==0){
        cout << "USAGI" << endl;
    }else if(winner==1){
        cout << "NEKO" << endl;
    }else{
        cout << "DRAW" << endl;
    }
    return 0;
}