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 b or x < b then
		b = x
	end
end

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