local N = io.read("*n")
local M = io.read("*n")
local X = io.read("*n")
local Y = io.read("*n")

local xmax = X
local ymin = Y
local endend = false
for i = 1, N do
	if ymin <= xmax then
		endend = true
		break
	end
	local xi = io.read("*n")
	xmax = math.max(xmax, xi)
end
if not endend then
	for i = 1, M do
		if ymin <= xmax then
			endend = true
			break
		end
		local yi = io.read("*n")
		ymin = math.min(ymin, yi)
	end
end
if endend then
	print("War")
else
	print("No War")
end