n, u, v, m = gets.split.map &:to_i

number_pos = {}
marked = {}
%w(usagi neko).each do |name|
	number_pos[name] = {}
	(0..n-1).each do |i|
		gets.split.map(&:to_i).each.with_index do |k, j|
			(number_pos[name][k] ||= []) << [i, j]
		end
	end

	marked[name] = {
		:h => [0] * n,
		:v => [0] * n,
		:up => 0,
		:down => 0
	}
end

bingo = Hash.new(0)
m.times do
	k = gets.to_i
	%w(usagi neko).each do |name|
		a = number_pos[name][k]
		next if !a
		a.each do |i, j|
			marked[name][:h][i] |= (1 << j)
			bingo[name] += 1 if marked[name][:h][i]+ 1 == (1 << n)
			marked[name][:v][j] |= (1 << i)
			bingo[name] += 1 if marked[name][:v][j] + 1 == (1 << n)
			if i == j
				marked[name][:up] |= (1 << i)
				bingo[name] += 1 if marked[name][:up] + 1 == (1 << n)
			end
			if i + j == n
				marked[name][:down] |= (1 << i)
				bingo[name] += 1 if marked[name][:down] + 1 == (1 << n)
			end
		end
	end

	c = (n == 1 ? 3 : 1)

	if bingo['usagi'] / c >= u && bingo['neko'] / c >= v
		puts 'DRAW'
		exit
	end
	if bingo['usagi'] / c >= u
		puts 'USAGI'
		exit
	end
	if bingo['neko'] / c >= v
		puts 'NEKO'
		exit
	end
end

puts 'DRAW'