n = io.read("*n")
m = io.read("*n")
x = io.read("*n")
y = io.read("*n")

local a = nil
for i = 1, n do
	x = io.read("*n")
	if not a or x > a then
		a = x
	end
end
local b = nil
for i = 1, m do
	x = io.read("*n")
	if not a or x < a then
		a = x
	end
end

local war = "War"
for i = a+1, b do
	if i > x and i >= y then
		war = "No War"
	end
end
print(war)