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

for i = 1, N do
	if ymin <= xmax then
		print("War")
		return
	end
	local xi = io.read("*n")
	xmax = math.max(xmax, xi)
end
for i = 1, M do
	if ymin <= xmax then
		print("War")
		return
	end
	local yi = io.read("*n")
	ymin = math.min(ymin, yi)
end
print("No War")